Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

OSS Library Calls (s) strchr(3)
NAME
strchr - Finds an integer character in 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>
char *strchr(
const char *s,
int c);
PARAMETERS
s Specifies the string to search.
c Specifies a character, expressed as an int data type, to search for.
DESCRIPTION
The strchr() function locates the first occurrence of the integer specified by the c parameter,
which is converted to a char, in the string pointed to by the s parameter. The terminating null
character is treated as part of the string pointed to by the s parameter.
If c is a null byte (’\0’), the function locates the terminating null byte of s.
RETURN VALUES
Upon successful completion, this function returns a pointer to the matching character in the
scanned string. When the character specified by parameter c is not found, a null pointer is
returned.
ERRORS
None. This function does not set errno.
RELATED INFORMATION
Functions: strcat(3), strrchr(3), wcschr(3).
527187-017 Hewlett-Packard Company 6133