2.1.2.58 strpbrk


Description

Scan strings for characters in a specified character set.

Syntax

LPSTR strpbrk( LPCSTR lpcszString, LPCSTR lpcszCharSet )

Parameters

lpcszString
[input] String to search through
lpcszCharSet
[input] String containing specified character set

Return

Returns a pointer to the first occurrence of a character in a string that is in specified a character set.

Examples

EX1

void strpbrk_ex1()
{
    char str1[] = "I saw 3 blind mice";
    char* pdest = strpbrk(str1, "123456789");
    out_str(pdest); // output "3 blind mice"
}

Remark

Scan strings for characters in a specified character set.

See Also

strrchr

Header to Include

origin.h

Reference