std::rename
Da 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. |
Definido no cabeçalho <cstdio>
|
||
int rename( const char *old_filename, const char *new_filename ); |
||
Altera o nome de um arquivo. O arquivo é identificado pela seqüência de caracteres apontada por
old_filename
. O novo nome é identificado pela seqüência de caracteres apontada por 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.
Índice |
[editar] Parâmetros
old_filename | - | ponteiro para uma string terminada em null contendo o caminho que identifica o arquivo a ser renomeado
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 | - | ponteiro para uma string terminada em null contendo o novo caminho do arquivo
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. |
[editar] Valor de retorno
0 sobre o sucesso ou não valor zero em caso de erro.
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.
[editar] Exemplo
Esta seção está incompleta Motivo: sem exemplo |
[editar] Veja também
apaga um arquivo 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. (função) | |
Documentação C para rename
|