StrChr function
Searches a string for the first occurrence of a character that matches the specified character. The comparison is case-sensitive.
Syntax
PTSTR StrChr( _In_ PTSTR pszStart, TCHAR wMatch );
Parameters
- pszStart [in]
-
Type: PTSTR
The address of the string to be searched.
- wMatch
-
Type: TCHAR
The character to be used for comparison.
Return value
Type: PTSTR
Returns the address of the first occurrence of the character in the string if successful, or NULL otherwise.
Remarks
The comparison assumes pszStart points to the start of a null-terminated string.
Requirements
|
Minimum supported client |
Windows 2000 Professional, Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names |
StrChrW (Unicode) and StrChrA (ANSI) |