LPTSTR CharPrev(lpszStart, lpszCurrentChar) | |||||
LPCTSTR lpszStart; | /* address of the first character | */ | |||
LPCTSTR lpszCurrentChar; | /* address of the current character | */ |
The CharPrev function moves to the previous character in a string.
lpszStart
Points to the beginning of the string.
lpszCurrentChar
Points to a character in a null-terminated string.
The return value points to the previous character in the string, or to the first character in the string if the lpszCurrentChar parameter is equal to the lpszStart parameter.
The CharPrev function may be used as either a wide-character function (where text arguments must use Unicode) or an ANSI function (where text arguments must use characters from the Windows 3.x character set installed).
CharNext