English
Language : 

CC78K0S Datasheet, PDF (242/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 10 LIBRARY FUNCTIONS
6-9 strpbrk
Character String/Memory Functions
FUNCTION
The string function strpbrk returns a pointer to the first character in a string to be searched that matches any
character in a specified string.
HEADER
string.h
FUNCTION PROTOTYPE
char *strpbrk (const char *s1, const char *s2);
Function
strpbrk
Arguments
s1... Pointer to string to be
searched
s2 ... Pointer to string whose
characters are specified for
match
Return Value
• Pointer to the first character
in the string s1 that
matches any character in
the string s2 if any match is
found
• Null pointer if no match is
found
EXPLANATION
• The strpbrk function returns a pointer to the first character in the string pointed to by s1 that matches any
character in the string pointed to by s2.
• If none of the characters in the string s2 is found in the string s1, the function returns a null pointer.
242
User’s Manual U14872EJ1V0UM