al_fget_ustr(3)
okay so bestie, welcome to the al_fget_ustr(3) page from the Allegro 5 API manual π β thatβs the manual name right there, folded in all cute, no header-line copy-paste happening here, periodt β¨
πΈ NAME πΈ
al_fget_ustr β Allegro 5 API π
π¦ SYNOPSIS π¦
okay, the exact spells you need are:
#include <allegro5/allegro.h>
ALLEGRO_USTR *al_fget_ustr(ALLEGRO_FILE *f)
π₯ DESCRIPTION π₯
So al_fget_ustr reads a string of bytes, and it stops when it hits a newline or end-of-file π. The line terminator(s), if any, are included in the returned string β yes, theyβre coming with you, no cap π.
On success it returns a pointer to a new ALLEGRO_USTR structure. This must be freed eventually with al_ustr_free(3) β donβt leave it lingering, bestie π«Ά. It returns NULL if an error occurred or if the end of file was reached without reading any bytes π.
Also, for the tea on translations of end-of-line characters, see al_fopen(3) π.
β SEE ALSO β
and thatβs the whole vibe: this was the Allegro reference manual, al_fget_ustr(3) page β the footer has no date listed, so Iβm not inventing one, fr fr π
π¦ 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