◐ Shell
clean mode source ↗

strcpy - 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 *strcpy( char *dest, const char *src );

Copia la stringa di byte puntato da src alla stringa di byte, puntata da dest.

Original:

Copies the byte string pointed to by src to byte string, pointed to by dest.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Se le stringhe si sovrappongono, il comportamento non è definito.

Original:

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 di byte da copiare

Original:

pointer to the byte string to copy 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

Vedi anche

copia un certo numero di caratteri da una stringa ad un altro

Original:

copies a certain amount of characters from 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]

copia un buffer all'altro

Original:

copies one buffer 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]