Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

Guardian Native C 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 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 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).
527192-018 Hewlett-Packard Company 6103