COHERENT manpages

This page displays the COHERENT manpage for strlen() [Measure a string].

List of available manpages
Index


strlen() -- String Function (libc)

Measure a string
#include <string.h>
int strlen(string)
char *string;

strlen() measures  string, and returns  its length in  bytes, not including
the null  terminator.  This  is useful in  determining how much  storage to
allocate for a string.

Example

For an example of how to use this function, see the entry for string.

See Also

libc,
string.h
ANSI Standard, §7.11.6.3
POSIX Standard, §8.1