strpbrk()

locate any of a set of characters in string 

Function


SYNOPSIS

#include <string.h>

char *strpbrk(const char *s1, const char *s2);


DESCRIPTION

The strpbrk() function finds the first occurrence of any character from the string pointed to by s2 in the string pointed to by s1.


PARAMETERS

s1 

Points to a null-terminated string in which to search.

s2 

Points to a null-terminated set of characters for which to search.


RETURN VALUES

On success, the strpbrk() function returns a pointer to a character in string s1. If no character from s2 occurs in s1, strpbrk() returns a null pointer.


CONFORMANCE

ANSI/ISO 9899-1990.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
strchr(), strspn(), strstr()


PTC MKS Toolkit 10.5 Documentation Build 40.