osx man page for strlen

Query: strlen

OS: osx

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

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 IEEE Std 1003.1-2008 (``POSIX.1'').
BSD
February 28, 2009 BSD
Related Man Pages
strnlen(3) - centos
strnlen(3) - linux
strnlen(3) - debian
strlen(3p) - posix
strnlen(3) - opendarwin
Similar Topics in the Unix Linux Community
Delete first 2 character from string
Problems with Strlen
Getting error &quot;Undefined symbol: .u_strlen_2_6&quot;
pointer arithmetic vs. strlen() &amp; strnlen()?
strlen for UTF-8