Standard C Functions


strpbrk


Syntax

#include <string.h>
char *strpbrk(const char *string1, const char *string2);

Arguments

string1      character string to be searched
string2      contains one or more characters to look for

Return Value

A pointer to the found character or a NULL if none of the characters in string2 is found in string1

Description

Finds the first occurrence in string1 of any character currently in string2.