DOKK / manpages / debian 12 / allegro5-doc / al_fwrite16le.3alleg5.en
al_fwrite16le(3alleg5) al_fwrite16le(3alleg5)

al_fwrite16le - Allegro 5 API

#include <allegro5/allegro.h>
size_t al_fwrite16le(ALLEGRO_FILE *f, int16_t w)
    

Writes a 16-bit word in little-endian format (LSB first).

Returns the number of bytes written: 2 on success, less than 2 on an error.

al_fwrite16be(3alleg5)

Allegro reference manual