FindChar method


Syntax

Invoke FindChar, lpszString, lChar

Function

Searches the specified character inside the specified string.

Parameters

lpszString

Pointer to the effective address of the null-terminated string where to search.

lChar

A DD value containing the character to be searched for.

Return value

Eax returns the zero-based position of the character inside the string, or -1 if the character was not found.

REMARKS: For ANSI versions the character to be searched for should be in the low byte of lChar, while for UNICODE versions it should be in the low word of lChar.