Contents Index Topic Contents | ||
Previous Topic: StrCpyN Next Topic: StrCSpnI |
StrCSpn
int StrCSpn( LPCTSTR lpStr, LPCTSTR lpSet );Searches for the first occurrence of a substring within a string. The search method is case sensitive, and the NULL terminator is included within the search pattern match.
- Returns the index of the first character of the substring within the string if successful, or the length of the string if no match is found.
- lpStr
- Address of the null-terminated string to be searched.
- lpSet
- Address of the substring to search for.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.