Open System Services Library Calls Reference Manual (G06.28+, H06.05+)
OSS Library Calls (s) strlen(3)
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 Specifies 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).
527187-007 Hewlett-Packard Company 6−101