Guardian C Library Calls Reference Manual
stpbrk (supplementary)
3-188 128833—Guardian TNS C Library Calls Reference Manual
Reference to Library Calls
stpbrk (supplementary)
The stpbrk function scans a string for a character that is in a given list of characters. See
“strpbrk” on page 3-206 for an equivalent ISO C Standard function.
scan_str
points to the string to scan.
chr_list
points to the string containing the characters to scan for.
Return Value
points to the first occurrence in *scan_str of one of the characters in *chr_list. If
*scan_str does not contain any of the characters in *chr_list, then stpbrk returns the
pointer value NULL.
stpchr (supplementary)
The stpchr function scans a string for the first occurrence of a given character. See
“strchr” on page 3-193 for an equivalent ISO C Standard function.
scan_str
points to the string to scan.
chr
specifies the character to scan for.
Return Value
points to the first occurrence in *scan_str of chr. If *scan_str does not contain chr,
then stpchr returns the pointer value NULL.
#include <stringh>
char *stpbrk(char *scan_str, char *chr_list);
#include <stringh>
char *stpchr(char *scan_str, int chr);