#include <string.h>
size_t strlen(const char *s);
The strlen() function calculates the length of the string pointed to by s, excluding the terminating null byte ('\0').
The strlen() function returns the number of bytes in the string pointed to by s.
이 섹션에서 사용되는 용어에 대한 설명은 attributes(7)EN을 참조하십시오.
| 상호 작용 | 속성 | 번호 |
| strlen() | Thread safety | MT-Safe |
POSIX.1-2001, POSIX.1-2008, C99, C11, SVr4, 4.3BSD.
In cases where the input buffer may not contain a terminating null byte, strnlen(3)EN should be used instead.