strpbrk

Searches a string for the occurrence of one of a specified set of characters.

Format

#include  <string.h>

char *strpbrk  (const char *str, const char
               *charset);
Function Variants This function also has variants named _strpbrk32 and _strpbrk64 for use with 32-bit and 64-bit pointer sizes, respectively. See Section 1.8 for more information on using pointer-size-specific functions.

Arguments

str
A pointer to a character string. If this character string is a null string, 0 is returned.
charset
A pointer to a character string containing the set of characters for which the function will search.

Description

This function scans the characters in the string, stops when it encounters a character found in charset, and returns the address of the first character in the string that appears in the character set.

Return Values
The address of the first character in the string that is in the set. 
NULL  Indicates that no character is in the set. 


Previous Page | Next Page | Table of Contents | Index