al_read_directory(3alleg5)
β¨ NAME β¨
al_read_directory β it's an Allegro 5 API thing, bestie π
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
ALLEGRO_FS_ENTRY *al_read_directory(ALLEGRO_FS_ENTRY *e)
π¦ DESCRIPTION π¦
okay so picture this: you've got a directory open, and you want the next item in it. That's literally it. al_read_directory reads the next directory item and hands you back a filesystem entry for it. main character behaviour fr fr π
And if there's nothing left to read? Or if something goes sideways? You get NULL. Both cases, same answer, no cap. π
π«Ά When you're done with the entry it gives you, pls pls pls call al_destroy_fs_entry(3alleg5) on it. Don't just leave it lying around, that's not the vibe.
Also important, bestie: this function will ignore any files or directories named . or .. β you know, the ones that might exist on certain platforms and might mean the current directory and the parent directory. Not me skipping right past those πβ¨
π SEE ALSO π
that's the whole page, periodt π
this came to you straight from the Allegro reference manual, al_read_directory(3alleg5) edition β go slay some filesystem traversal, you got this ππ¦β
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms