Espacios de nombres
Variantes

strcat

De cppreference.com
< c | string | byte
<tbody> </tbody>
Definido en el archivo de encabezado <string.h>
char *strcat( char *dest, const char *src );
Anexa una cadena de bytes que apunta a una cadena src byte apuntado por dest. La cadena de bytes resultante es terminada en nulo. Si las cadenas se superponen, el comportamiento no está definido .
Original:
Appends a byte string pointed to by src to a byte string pointed to by dest. The resulting byte string is null-terminated. If the strings overlap, the behavior is undefined.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Parámetros

dest -
puntero a la cadena de bytes terminada en cero para anexar
Original:
pointer to the null-terminated byte string to append to
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
src -
puntero a la cadena terminada en null byte a copiar
Original:
pointer to the null-terminated byte string to copy from
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Valor de retorno

dest

Ejemplo

char str1[50] = "Hello ";
char str2[50] = "World!";
strcat(str1, str2);
printf("%s", str1);

Salida:

Hello World!

Ver también

concatena una cierta cantidad de caracteres de dos cadenas
Original:
concatenates a certain amount of characters of two strings
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función) [editar]
copia una cadena a otra
(función) [editar]