std::fclose
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 fclose( FILE *stream ); |
||
Fecha o fluxo determinado arquivo. Quaisquer dados em buffer não escritas são liberadas para o OS. Quaisquer dados em buffer não lidas são descartados.
Original:
Closes the given file stream. Any unwritten buffered data are flushed to the OS. Any unread buffered data are discarded.
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.
Seja ou não a operação for bem sucedida, o fluxo não é mais associado com um arquivo, eo buffer alocado pelo std::setbuf ou std::setvbuf, se for o caso, também é desassociado e desalocadas se a atribuição automática foi usado.
Original:
Whether or not the operation succeeds, the stream is no longer associated with a file, and the buffer allocated by std::setbuf or std::setvbuf, if any, is also disassociated and deallocated if automatic allocation was used.
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
stream | - | o fluxo de arquivos para fechar
Original: the file stream to close 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 em sucesso, EOF contrário
Original:
0 on success, EOF otherwise
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
abre um arquivo Original: opens 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) | |
abrir um córrego existente com um nome diferente Original: open an existing stream with a different name The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (função) | |
esvaziará o buffer área e colocar fecha o arquivo associado Original: flushes the put area buffer and closes the associated file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (of std::basic_filebuf função pública membro)
| |
Documentação C para fclose
|