std::fwrite
![]() | 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 fwrite(constvoid* 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 unsignedchar and calling std::fputcsize
times for each object to write those unsignedchars into stream
, in order. The file position indicator for the stream is advanced by the number of characters written.
TriviallyCopyable
, il comportamento non è definito.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.
Indice |
[modifica]Parametri
buffer | - | puntatore all'oggetto primo oggetto nella matrice da scrivere 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 | - | dimensione di ciascun oggetto 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 | - | il numero degli oggetti da scrivere 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. |
[modifica]Valore di ritorno
Number of objects written successfully, which may be less than count
if an error occurred.
size
o count
è pari a zero, fwrite
restituisce zero e non esegue alcuna altra azione.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.
[modifica]Esempio
This section is incomplete Reason: no example |
[modifica]Vedi anche
(C++11) | stampe formattata uscita stdout, un flusso di file o di un buffer 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. (funzione) |
Scrive una stringa di caratteri in un flusso di file 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. (funzione) | |
legge da un file 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. (funzione) | |
C documentation for fwrite |