CharPrev

  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.

Parameters

lpszStart

Points to the beginning of the string.

lpszCurrentChar

Points to a character in a null-terminated string.

Return Value

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.

Comments

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).

See Also

CharNext