std::rename
De cppreference.com
![]() |
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 <cstdio>
|
||
int rename( const char *old_filename, const char *new_filename ); |
||
Modifie le nom d'un fichier. Le fichier est identifié par la chaîne de caractères pointée par
old_filename
. Le nouveau nom de fichier est identifié par la chaîne de caractères pointée par new_filename
.Original:
Changes the filename of a file. The file is identified by character string pointed to by
old_filename
. The new filename is identified by character string pointed to by new_filename
.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 |
[modifier] Paramètres
old_filename | - | pointeur vers une chaîne terminée par null qui contient le chemin d'identifier le fichier à renommer
Original: pointer to a null-terminated string containing the path identifying the file to rename The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
new_filename | - | pointeur vers une chaîne terminée par null qui contient le nouveau chemin d'accès du fichier
Original: pointer to a null-terminated string containing the new path of the file 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
En cas de succès ou 0 valeur non nulle sur l'erreur .
Original:
0 upon success or non-zero value on error.
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.
[modifier] Exemple
This section is incomplete Reason: no example |
[modifier] Voir aussi
efface un fichier Original: erases a file 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 rename
|