al_fwrite
size_t al_fwrite(ALLEGRO_FILE *f, const void *ptr, size_t size)
Introduced in 5.0.0
Write 'size' bytes from the buffer pointed to by 'ptr' into the given file.
Returns the number of bytes actually written. If an error occurs, the return value is a short byte count (or zero).
See also: al_fputc, al_fputs, al_fwrite16be, al_fwrite16le, al_fwrite32be, al_fwrite32le
Most helpful discussions:
- al_fprintf
- [A5] Writing Unicode to a file
- Drag and Drop system and TileMap
- Sockets addon
- Results of static analysis of Allegro sources [5.1] (errors & suspicious places)
- Differences betwen al_ustr_new and al_ustr_new()
- Object Serialization C++
- ALLEGRO_FILE bug?
- editting a file
- is A5 supposed to work on PPC?