src/stdlib/fileops.c
/*======================================================
 * do_checked_fwrite -- fwrite, and report & exit if fails
 *  filename may be null (only used for error message)
 *====================================================*/
- fwrite, and report & exit if fails
filename may be null (only used for error message)
- fwrite and report & exit if fails filename may be null ( only used for error message )
size_t
do_checked_fwrite (const void *buf, size_t size, size_t count, FILE *fp,
	STRING filename, STRING srcfile, int srcline)
{
	size_t rtn = fwrite(buf, size, count, fp);
	if (rtn != count) {
		report_fatal_fileop("fwrite", rtn, filename, srcfile, srcline); 
	}
	return rtn;
}
size_t do_checked_fwrite ( const void * buf , size_t size , size_t count , FILE * fp , STRING filename , STRING srcfile , int srcline ) { size_t rtn = fwrite ( buf , size , count , fp ) ; if ( rtn != count ) { report_fatal_fileop ( " " , rtn , filename , srcfile , srcline ) ; } return rtn ; }
do_checked_fwrite -- fwrite, and report & exit if fails
  filename may be null (only used for error message)
do_checked_fwrite -- fwrite and report & exit if fails filename may be null ( only used for error message )
/* exits */