Guardian Native C Library Calls Reference Manual (G06.28+, H06.04+)

strlen(3) Guardian Native C Library Calls Reference Manual
NAME
strlen - Finds length of string
LIBRARY
G-series native Guardian processes: $SYSTEM.SYSnn.ZCRESRL
G-series native OSS processes: /G/system/sysnn/zcresrl
H-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCREDLL
H-series OSS processes: /G/system/zdllnnn/zcredll
SYNOPSIS
#include <string.h>
size_t strlen(
const char *s);
PARAMETERS
s Species the string.
DESCRIPTION
The strlen() function returns the number of bytes in the string pointed to by the s parameter. The
string length value does not include the string terminating null character.
RETURN VALUES
Upon successful completion, the strlen() function returns the number of bytes in the string to
which the s parameter points. Otherwise, (size_t)-1 is returned, and errno is set to indicate the
error.
RELATED INFORMATION
Functions: strcat(3), wcslen(3).
666 Hewlett-Packard Company 527192-005