The lstrcat (alias strcat) function appends one string to another.
LPSTR lstrcat( LPSTR lpString1, LPCSTR lpString2 )
If the function succeeds, the return value is a pointer to the modified string. If the function fails, the return value is NULL.
EX1
void lstrcat_ex1() { char *ptr = NULL; char szStr[80] = "This is the first part. "; string str1 = "This is the second part."; ptr = lstrcat(szStr, str1); if(0 == strcmp(ptr, "This is the first part. This is the second part.")) printf("the string after the concatenation is \"%s\" \n" , szStr); else printf("concatenation failed \n"); }
strcat
origin.h