Loading...
Select Version
&pagelevel(4)&pagelevel
Syntax | #include <string.h> size_t strlen(const char *s); |
Description | strlen() determines the length of string s, not including the terminating null byte (\0 ).BS2000 Whereas the sizeof operator always returns the defined length, strlen() calculates the actual number of bytes in a string. The newline (\n) character, if present, is also included. (End) |
Return val. | Length of the string s if successful. The terminating null byte is not included in the count. |
Notes | A string terminated with the null byte ( |