| Wiki Markup |
|---|
C99 defines the {{fwrite()}} function as follows \[[ISO/IEC 9899:1999|AA. References#ISOBibliography#ISO/IEC 9899-1999]\]: |
size_t fwrite(const void *restrict ptr, size_t size, size_t nitems, FILE *restrict stream);
The
fwrite()function shall write, from the array pointed to byptr, up tonitemselements whose size is specified bysize, to the stream pointed to bystream. For each object,sizecalls shall be made to thefputc()function, taking the values (in order) from an array of unsigned char exactly overlaying the object. The file-position indicator for the stream (if defined) shall be advanced by the number of bytes successfully written. If an error occurs, the resulting value of the file-position indicator for the stream is unspecified.
...
| Wiki Markup |
|---|
[http://www.opengroup.org/onlinepubs/009695399/functions/fwrite.html] \[[ISO/IEC 9899:1999|AA. References#ISOBibliography#ISO/IEC 9899-1999]\] Section 7.19.8.2, "The fwrite function" |
...