Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
strlen(3) OSS 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 and J-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCREDLL
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zcredll
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/ycredll
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).
6−154 Hewlett-Packard Company 527187-017