Espaces de noms
Variantes
Affichages
Actions

strcat

De cppreference.com
< c‎ | string‎ | byte

 
 
 
Chaînes d'octets à zéro terminal
Fonctions
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Manipulation caractère
Original:
Character manipulation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Conversion aux formats numériques
Original:
Conversions to numeric formats
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
La manipulation de chaînes
Original:
String manipulation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
strcpy
strncpy
strcat
strncat
strxfrm
Examen chaîne
Original:
String examination
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Manipulation de la mémoire
Original:
Memory manipulation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
memchr
memcmp
memset
memcpy
memmove
Divers
Original:
Miscellaneous
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
strerror
 
Defined in header <string.h>
char *strcat( char *dest, const char *src );
Ajoute une chaîne d'octets pointée par src à une chaîne d'octets pointée par dest. La chaîne d'octets qui en résulte est terminée par NULL. Si les chaînes se chevauchent, le comportement est indéfini.
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.

Sommaire

[modifier] Paramètres

dest -
pointeur vers la chaîne d'octets terminée par NULL à ajouter
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 -
pointeur vers la chaîne d'octets terminée par NULL à copier
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.

[modifier] Retourne la valeur

dest

[modifier] Exemple

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

Résultat :

Hello World!

[modifier] Voir aussi

concatène un certain nombre de caractères de deux chaînes
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.

(fonction) [edit]
copie d'une chaîne à l'autre
Original:
copies one string to another
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction) [edit]