Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
strpbrk(3) Guardian Native C Library Calls Reference Manual
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 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 *strpbrk(
const char *s1,
const char *s2);
PARAMETERS
s1 Specifies a string being searched.
s2 Specifies a set of bytes in a string.
DESCRIPTION
The strpbrk() function scans the string pointed to by the s1 parameter for the first 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).
6−112 Hewlett-Packard Company 527192-018