◐ Shell
clean mode source ↗

strcpy – cppreference.com

Aus cppreference.com

<metanoindex/>

<tbody> </tbody>

definiert in Header

<string.h>

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

Kopiert die Byte-String, auf den src auf Byte-String, auf den durch 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.

Wenn die Saiten überlappen, ist das Verhalten undefiniert .

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.

Parameter

dest -

Zeiger auf die Byte-String kopiert werden soll

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 -

Zeiger auf die null-terminierte Byte-String aus kopieren

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.

Rückgabewert

dest

Beispiel

Siehe auch

kopiert eine bestimmte Menge von Zeichen aus einer Zeichenkette zu einem anderen

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.


(Funktion) [edit]

einen Puffer kopiert zu einem anderen

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.


(Funktion) [edit]