tools/firmware-utils/src/mkcsysimg.c
/*
 * routines to write data to the output file
 */
routines to write data to the output file
routines to write data to the output file
int
write_out_data(FILE *outfile, uint8_t *data, size_t len,
		struct csum_state *css)
{
	errno = 0;
	fwrite(data, len, 1, outfile);
	if (errno) {
		ERRS("unable to write output file");
		return ERR_FATAL;
	}
	if (css) {
		csum_update(data, len, css);
	}
	return 0;
}
int write_out_data ( FILE * outfile , uint8_t * data , size_t len , struct csum_state * css ) { errno = 0 ; fwrite ( data , len , 1 , outfile ) ; if ( errno ) { ERRS ( " " ) ; return ERR_FATAL ; } if ( css ) { csum_update ( data , len , css ) ; } return 0 ; }
routines to write data to the output file
routines to write data to the output file