lstrcat

The lstrcat function appends one string to another.

LPTSTR lstrcat(
  LPTSTR lpString1,  // pointer to buffer for concatenated strings
  LPCTSTR lpString2  // pointer to string to add to string1
);
 

Parameters

lpString1
Pointer to a null-terminated string. The buffer must be large enough to contain both strings.
lpString2
Pointer to the null-terminated string to be appended to the string specified in the lpString1 parameter.

Return Values

If the function succeeds, the return value is a pointer to the buffer.

If the function fails, the return value is NULL. To get extended error information, call GetLastError.

QuickInfo

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

See Also

String Manipulation Overview, String Manipulation Functions, lstrcmp, lstrcmpi, lstrcpy, lstrlen