◐ Shell
clean mode source ↗

strcat - cppreference.com

Da cppreference.com.

Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.

La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui.

Click here for the English version of this page

<metanoindex/>

<tbody> </tbody>

Elemento definito nell'header

<string.h>

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

Aggiunge una stringa di byte puntato da src ad una stringa di byte puntato da dest. La stringa di byte risultante è terminata da null. Se le stringhe si sovrappongono, il comportamento non è definito.

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.

Parametri

dest -

puntatore alla stringa con terminazione null byte da aggiungere

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 -

puntatore alla stringa con terminazione null byte da cui copiare

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.

Valore di ritorno

dest

Esempio

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

Output:

Vedi anche

concatena una certa quantità di caratteri di due stringhe

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.


(funzione) [modifica]

copia una stringa in un'altra

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.


(funzione) [modifica]