Query: strlen
OS: freebsd
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
STRLEN(3) BSD Library Functions Manual STRLEN(3)NAMEstrlen, strnlen -- find length of stringLIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <string.h> size_t strlen(const char *s); size_t strnlen(const char *s, size_t maxlen);DESCRIPTIONThe 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 VALUESThe 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 ALSOstring(3), wcslen(3), wcswidth(3)STANDARDSThe strlen() function conforms to ISO/IEC 9899:1990 (``ISO C90''). The strnlen() function conforms to IEEE Std 1003.1-2008 (``POSIX.1'').BSDFebruary 28, 2009 BSD
Related Man Pages |
---|
strnlen(3) - centos |
strnlen(3) - debian |
strlen(3p) - posix |
strnlen(3) - sunos |
strnlen(3) - v7 |
Similar Topics in the Unix Linux Community |
---|
Problems with Strlen |
pointer arithmetic vs. strlen() & strnlen()? |
strlen for UTF-8 |
Segment fault related to strlen.S |
PHP: declared variables, strlen vs isset |