.TH "al_fwrite(3alleg5) Allegro reference manual" "" "" "" "" .SH NAME .PP al_fwrite \- Allegro 5 API .SH SYNOPSIS .IP .nf \f[C] #include\ size_t\ al_fwrite(ALLEGRO_FILE\ *f,\ const\ void\ *ptr,\ size_t\ size) \f[] .fi .SH DESCRIPTION .PP Write \[aq]size\[aq] bytes from the buffer pointed to by \[aq]ptr\[aq] into the given file. .PP Returns the number of bytes actually written. If an error occurs, the return value is a short byte count (or zero). .SH SEE ALSO .PP al_fputc(3alleg5), al_fputs(3alleg5), al_fwrite16be(3alleg5), al_fwrite16le(3alleg5), al_fwrite32be(3alleg5), al_fwrite32le(3alleg5)