std::fwrite
|
|
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. |
<metanoindex/>
<tbody> </tbody>| definiert in Header <cstdio>
|
||
int fwrite( const void* buffer, std::size_t size, std::size_t count, std::FILE* stream ); |
||
Writes up to count objects from the given array buffer to the output stream stream as if by reinterepreting each object as an array of unsigned char and calling std::fputc size times for each object to write those unsigned chars into stream, in order. The file position indicator for the stream is advanced by the number of characters written.
TriviallyCopyable, ist das Verhalten undefiniert .TriviallyCopyable, the behavior is undefined.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.
indeterminate.
Parameter
| buffer | - | Zeiger auf das erste Objekt in der Objekt-Array geschrieben werden soll
Original: pointer to the first object object in the array to be written The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| size | - | Größe jedes Objekts
Original: size of each object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| count | - | die Anzahl der Objekte zu schreiben sind
Original: the number of the objects to be written The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Rückgabewert
Number of objects written successfully, which may be less than count if an error occurred.
size oder count Null ist, gibt fwrite Null und führt keine weitere Aktion .size or count is zero, fwrite returns zero and performs no other action.You can help to correct and verify the translation. Click here for instructions.
Beispiel
| This section is incomplete Reason: no example |
Siehe auch
(C++11) |
Drucke formatiert Ausgabe an stdout, eine Datei-Strom oder einen Puffer Original: prints formatted output to stdout, a file stream or a buffer The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktion) |
schreibt eine Zeichenkette in einer Datei-Stream Original: writes a character string to a file stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktion) | |
liest aus einer Datei Original: reads from a file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktion) | |
C documentation for fwrite
| |