CharNext

The CharNext function returns a pointer to the next character in a string.

LPTSTR CharNext(
  LPCTSTR lpsz   // pointer to current character
);
 

Parameters

lpsz
Pointer to a character in a null-terminated string.

Return Values

The return value is a pointer to the next character in the string, or to the terminating null character if at the end of the string.

If lpsz points to the terminating null character, the return value is equal to lpsz.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Requires version 1.0 or later.
  Header: Declared in winuser.h.
  Import Library: Use user32.lib.
  Unicode: Implemented as Unicode and ANSI versions on Windows NT.

See Also

String Manipulation Overview, String Manipulation Functions, CharNextExA, CharPrev