manpagez: man pages & more
man strlen(3)
Home | html | info | man
strlen(3) BSD Library Functions Manual strlen(3)

NAME

 strlen, strnlen -- find length of string

LIBRARY

 Standard C Library (libc, -lc)

SYNOPSIS

 #include <string.h>
 size_t
 strlen(const char *s);
 size_t
 strnlen(const char *s, size_t maxlen);

DESCRIPTION

 The strlen() 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 VALUES

 The strlen() 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 ALSO

 string(3) , wcslen(3) , wcswidth(3) 

STANDARDS

 The strlen() function conforms to ISO/IEC 9899:1990 (``ISO C90''). The
 strnlen() function conforms to .
BSD February 28, 2009 BSD

Mac OS X 10.8 - Generated Fri Aug 31 05:58:38 CDT 2012
© manpagez.com 2000-2025
Individual documents may contain additional copyright information.

AltStyle によって変換されたページ (->オリジナル) /