StrCSpnIA function (shlwapi.h)
Searches a string for the first occurrence of any of a group of characters. The search method is not case-sensitive, and the terminating NULL character is included within the search pattern match.
int StrCSpnIA( PCSTR pszStr, PCSTR pszSet );
A pointer to the null-terminated string to be searched.
A pointer to a null-terminated string containing the characters to search for.
Returns the index of the first occurrence in pszStr of any character from pszSet, or the length of pszStr if no match is found.
The return value of this function is equal to the length of the initial substring in pszStr that does not include any characters from pszSet.
The shlwapi.h header defines StrCSpnI as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
|Minimum supported client||Windows 2000 Professional, Windows XP [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|DLL||Shlwapi.dll (version 4.71 or later)|