int fprintf( FILE *fp, const char *format [, arg1, arg2, ...] )
- prototype in stdio.h - returns number of bytes it attempted to write regardless of success. To check for a successful fprintf call on a buffered stream, use fflush which returns accurate error information. - using printf or any of the stdio functions results in a default allocation of 512 bytes for the I/O buffer and the inclusion of the standard memory allocation functions - see printf() and PRINTF SPEC