The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

 NAME

strlen - get string length

 SYNOPSIS



#include <string.h>

size_t strlen(const char *s);

 DESCRIPTION

The strlen() function computes the number of bytes in the string to which s points, not including the terminating null byte.

 RETURN VALUE

The strlen() function returns the length of s; no return value is reserved to indicate an error.

 ERRORS

No errors are defined.

 EXAMPLES

None.

 APPLICATION USAGE

None.

 FUTURE DIRECTIONS

None.

 SEE ALSO

<string.h>.

DERIVATION

Derived from Issue 1 of the SVID.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]