cpp/string/byte/strcpy : Différence entre versions
De cppreference.com
m (r2.7.3) (robot Ajoute : de, en, es, it, ja, pt, ru, tr, zh) |
m (Use {{lc}}. Update links. Various fixes.) |
||
Ligne 11 : | Ligne 11 : | ||
===Paramètres=== | ===Paramètres=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| dest |{{tr| pointeur vers la chaîne d'octets à copier| pointer to the byte string to copy to}}}} |
− | {{ | + | {{| src |{{tr| pointeur vers la chaîne d'octets terminée par NULL à copier| pointer to the null-terminated byte string to copy from}}}} |
− | {{ | + | {{end}} |
===Retourne la valeur=== | ===Retourne la valeur=== | ||
Ligne 27 : | Ligne 27 : | ||
===Voir aussi=== | ===Voir aussi=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| cpp/string/byte/strncpy}} |
− | {{ | + | {{| cpp/string/byte/memcpy}} |
− | {{ | + | {{see c | c/string/byte/strcpy}} |
− | {{ | + | {{end}} |
[[de:cpp/string/byte/strcpy]] | [[de:cpp/string/byte/strcpy]] |
Version du 2 juillet 2013 à 05:49
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
Déclaré dans l'en-tête <cstring>
|
||
char *strcpy( char *dest, const char *src ); |
||
Copie la chaîne pointée par octet
src
de chaîne d'octets, pointé par 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.
You can help to correct and verify the translation. Click here for instructions.
Si les cordes se chevauchent, le comportement est indéfini .
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.
You can help to correct and verify the translation. Click here for instructions.
Sommaire |
Paramètres
dest | - | pointeur vers la chaîne d'octets à copier
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 | - | 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. |
Retourne la valeur
dest
Exemple
This section is incomplete Reason: no example |
Voir aussi
copie d'un certain nombre de caractères d'une chaîne à l'autre 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. (fonction) | |
une copie du tampon à l'autre 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. (fonction) | |
C documentation for strcpy
|