StrChrA function

Searches a string for the first occurrence of a character that matches the specified character. The comparison is case-sensitive.

Syntax

PCSTR StrChrA(
  PCSTR pszStart,
  WORD  wMatch
);

Parameters

pszStart

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]
Target Platform Windows
Header shlwapi.h
Library Shlwapi.lib
DLL Shlwapi.dll (version 4.71 or later)