|
NAMEstrlen , strnlen —
find length of string
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <string.h>
size_t
size_t
DESCRIPTIONThestrlen () function computes the length of the string
s. The strnlen () function
attempts to compute the length of s, but never scans
beyond the first maxlen bytes of
s.
RETURN VALUESThestrlen () function returns the number of characters
that precede the terminating NUL character. The
strnlen () function returns either the same result as
strlen () or maxlen, whichever is
smaller.
SEE ALSOstring(3), wcslen(3), wcswidth(3)STANDARDSThestrlen () function conforms to
ISO/IEC 9899:1990 (“ISO C90”).
The strnlen () function conforms to
IEEE Std 1003.1-2008 (“POSIX.1”).
Visit the GSP FreeBSD Man Page Interface. |