strnchrn — Searches a string for the first occurence of any of a set of characters
char * **strnchrn** ( | str, | |
| | nstr, | |
| | chars, | |
| | nchars
); | |
Searches a string for the first occurence of any of a set of characters
nstr chars starting at str for any of the
nchars characters that are in
chars. It will go past a NUL character in str.
The string to search.
The number of characters to search.
The characters to search for.
The number of characters in chars.
Returns a pointer to the first matching character or NULL if there is no match.
It is legal to call this function in any thread.