strpbrk

Syntax

char* strpbrk(const char* s, const char* accept)

Arguments

s
The string to scan.
accept
A string containing characters to scan for in string s.

Return

Pointer to the first match found.

Description

Scans string s for the first occurrence of any of the characters specified in string accept and returns NULL if none of the characters were found or a pointer to the first character in s found.

Also see

strcspn, strspn, strstr