std::fclose
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 fclose( FILE *stream ); | ||
Ferme le flux de fichier donné. Toutes les données non encore écrites en mémoire tampon sont rincés à l'OS. Toutes les données non lues en mémoire tampon sont jetés .
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.
Que ce soit ou non l'opération réussit, le flux n'est plus associé à un fichier, et la mémoire tampon allouée par std::setbuf ou std::setvbuf, le cas échéant, est également dissocié et libérée si l'allocation automatique a été utilisé .
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.
Sommaire |
[modifier]Paramètres
stream | - | le flux de fichier pour fermer 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. |
[modifier]Retourne la valeur
0 en cas de succès, EOF autrement
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.
[modifier]Exemple
This section is incomplete Reason: no example |
[modifier]Voir aussi
ouvre un fichier 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. (fonction) | |
ouvrir un flux existant sous un nom différent 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. (fonction) | |
le tampon des mises région et ferme le fichier associé 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. (fonction membre publique de std::basic_filebuf ) | |
C documentation for fclose |