πΎ Archived View for gmi.noulin.net βΊ man βΊ man3 βΊ strlen.3.gmi captured on 2023-01-29 at 10:09:59. Gemini links have been rewritten to link to archived content
β¬ οΈ Previous capture (2022-06-12)
-=-=-=-=-=-=-
STRLEN(3) Linux Programmer's Manual STRLEN(3) NAME strlen - calculate the length of a string SYNOPSIS #include <string.h> size_t strlen(const char *s); DESCRIPTION The strlen() function calculates the length of the string pointed to by s, excluding the terminating null byte ('\0'). RETURN VALUE The strlen() function returns the number of bytes in the string pointed to by s. ATTRIBUTES For an explanation of the terms used in this section, see attributes(7). ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ¬ββββββββββββββββ¬ββββββββββ βInterface β Attribute β Value β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββΌββββββββββ€ βstrlen() β Thread safety β MT-Safe β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββββ΄ββββββββββ CONFORMING TO POSIX.1-2001, POSIX.1-2008, C89, C99, C11, SVr4, 4.3BSD. NOTES In cases where the input buffer may not contain a terminating null byte, strnlen(3) should be used instead. SEE ALSO string(3), strnlen(3), wcslen(3), wcsnlen(3) GNU 2021-08-27 STRLEN(3)