std::rename
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. |
Elemento definito nell'header <cstdio>
|
||
int rename( const char *old_filename, const char *new_filename ); |
||
Cambia il nome di un file. Il file viene identificato da una stringa di caratteri a cui punta
old_filename
. Il nuovo nome del file è identificato da una stringa di caratteri a cui punta 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.
Indice |
[modifica] Parametri
old_filename | - | puntatore ad una stringa con terminazione null contenente il percorso che identifica il file da rinominare
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 | - | puntatore ad una stringa con terminazione null contenente il nuovo percorso del file
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. |
[modifica] Valore di ritorno
0 in caso di successo o di valore diverso da zero in caso di errore.
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.
[modifica] Esempio
This section is incomplete Reason: no example |
[modifica] Vedi anche
cancella un file 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. (funzione) | |
C documentation for rename
|