fwrite() STDIO Function fwrite() Write into file stream #include <stdio.h> int fwrite(buffer, size, n, fp) char *buffer; unsigned size, n; FILE *fp; fwrite writes n items, each of size bytes, from buffer into the file stream pointed to by fp. ***** Example ***** For an example of how to use this function, see the entry for fopen. ***** See Also ***** fread(), STDIO ***** Diagnostics ***** fwrite normally returns the number of items written. If an error occurs, the returned value will not be the same as n. COHERENT Lexicon Page 1