al_read_directory(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

🌸 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 NULL if 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