strcat

Syntax

char* strcat(char *dest, const char* src)

Arguments

dest
The destination string to which the source string is to be appended.
src
The source string to be appended on the destination.

Return

A pointer to the resulting string, this is identical to the pointer given as dest.

Description

Appends string src to the end of string dest, overwriting the NULL character at the end of dest with the first character of src up to and including its terminating NULL character.
String dest must have enough space reserved for the resulting string, otherwise results may be undefined.

See Also

strncat