1STRLEN(3) Linux Programmer's Manual STRLEN(3)
2
3
4
6 strlen - calculate the length of a string
7
9 #include <string.h>
10
11 size_t strlen(const char *s);
12
14 The strlen() function calculates the length of the string s, excluding
15 the terminating null byte ('\0').
16
18 The strlen() function returns the number of bytes in the string s.
19
21 SVr4, 4.3BSD, C89, C99.
22
24 string(3), strnlen(3), wcslen(3), wcsnlen(3)
25
27 This page is part of release 3.53 of the Linux man-pages project. A
28 description of the project, and information about reporting bugs, can
29 be found at http://www.kernel.org/doc/man-pages/.
30
31
32
33GNU 2012-05-04 STRLEN(3)