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

Guardian Native C Library Calls (s) strpbrk(3)
NAME
strpbrk - Finds one of a set of bytes in a 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>
char *strpbrk(
const char *s1,
const char *s2);
PARAMETERS
s1 Species a string being searched.
s2 Species a set of bytes in a string.
DESCRIPTION
The strpbrk( ) function scans the string pointed to by the s1 parameter for the rst occurrence of
any byte in the string pointed to by the s2 parameter. The strpbrk( ) function treats the s2
parameter as a series of bytes; it does not search for multibyte characters. The wcspbrk( ) func-
tion provides the same functionality but search for characters rather than bytes.
RETURN VALUES
Upon successful completion, the strpbrk() function returns a pointer to the matched byte. When
no byte in the string pointed to by the s2 parameter occurs in the string pointed to by the s1
parameter, a null pointer is returned and the value of errno remains unchanged.
RELATED INFORMATION
Functions: strcat(3).
527192-005 Hewlett-Packard Company 671