strlen man page on OpenBSD

Man page or keyword search:  
man Server   11362 pages
apropos Keyword Search (all sections)
Output format
OpenBSD logo
[printable version]

STRLEN(3)		  OpenBSD Programmer's Manual		     STRLEN(3)

NAME
     strlen, strnlen - find length of a string

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 computes the length of the string s, up to maxlen
     characters.  The strnlen() function will never attempt to address more
     than maxlen characters, making it suitable for use with character arrays
     that are not guaranteed to be NUL-terminated.

RETURN VALUES
     The strlen() function returns the number of characters that precede the
     terminating NUL character.

     The strnlen() function returns the number of characters that precede the
     terminating NUL or maxlen, whichever is smaller.

SEE ALSO
     string(3)

STANDARDS
     The strlen() function conforms to ANSI X3.159-1989 (``ANSI C'').

     The strlen() and strnlen() functions conform to IEEE Std 1003.1-2008
     (``POSIX'').

HISTORY
     The strlen() function first appeared in Version 7 AT&T UNIX.  The
     strnlen() function first appeared in OpenBSD 4.8.

OpenBSD 4.9			 May 24, 2010			   OpenBSD 4.9
[top]

List of man pages available for OpenBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net