strcat

Appends a copy of one string to the end of a second string.

Library:LibC
Classification:ANSI
Service:Characters and Strings

Syntax

  #include <string.h> 
   
  char *strcat (
     char         *dst,   
     const char   *src);
  

Parameters

dst

(OUT) Points to the null-terminated string to which to append a copy of another string.

src

(IN) Points to the null-terminated string to be copied.

Return Values

Returns the value of dst.

Remarks

The strcat function appends a copy of the string pointed to by src (including the null-terminating character) to the end of the string pointed to by dst. The first character of src overwrites the null-terminating character at the end of dst.

See Also

strncat