al_fread16le(3)
π NAME π
okay so this is al_fread16le from the Allegro 5 API, and weβre living in the Library Functions Manual β section 3 energy, if youβre keeping score π
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
int16_t al_fread16le(ALLEGRO_FILE *f)
π DESCRIPTION π
bestie, this function reads a 16-bit word in little-endian format β thatβs LSB first, periodt π¦
- On success? It returns the 16-bit word. Slay β¨
- On failure? It returns
EOF (-1). Yep, thatβs the vibe.
β οΈ careful, bestie:-1is also a valid return value, so a-1does not automatically mean failure. Useal_feof(3)to check if the end of the file was reached prematurely, oral_ferror(3)to check if an error occurred. Thatβs the vibe check, iykyk π
π¦ SEE ALSO π¦
al_fread16be(3)β the sister page, go look π
okay bye bestie, cute sign-off time: the source/version footer is the Allegro reference manual and this page is al_fread16le(3); thereβs no date in that footer, so no invented date drama πΈπ
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms