al_read_directory(3)
πΈ NAME πΈ
okay so this page is al_read_directory(3) β manual name right there, bestie β and itβs serving the Allegro 5 API function al_read_directory. lowkey iconic, highkey useful π
.
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
ALLEGRO_FS_ENTRY *al_read_directory(ALLEGRO_FS_ENTRY *e)
π DESCRIPTION π
So the way this works: it reads the next directory item and returns a filesystem entry for it. fr fr, thatβs the whole main character move π«.
- It returns
NULLif there are no more entries or if an error occurs. - Call
al_destroy_fs_entry(3)on the returned entry when youβre done with it β no leaving your FS_ENTRYs lying around, bestie π§Ήβ¨.
Also important: this function will ignore any files or directories named.or..which may exist on certain platforms and may signify the current and the parent directory. so yeah, those get the silent treatment ππ .
π¦ SEE ALSO π¦
mwah π β this page comes from the Allegro reference manual (thatβs the source/version vibe), and the footer rocks the al_read_directory(3) title tag. The original footer didnβt give a date, so weβre not inventing one β periodt ππ.
π¦ 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