al_get_fs_entry_mode(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

al_get_fs_entry_mode β€” the Allegro 5 API glow-up where you ask a filesystem entry what it is and what it's allowed to do πŸ¦‹


✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

uint32_t al_get_fs_entry_mode(ALLEGRO_FS_ENTRY *e)

πŸŽ€ DESCRIPTION πŸŽ€

okay bestie so you hand this function an ALLEGRO_FS_ENTRY and it hands you back that entry's mode flags. and what's in those flags, you ask? two whole things, no cap:

  • the entry's permissions πŸ‘‘
  • whether the entry is pointing at a file or at a directory πŸ—‚οΈ

that's it, that's the whole vibe check. it literally just tells you what kind of thing you're looking at and what it's allowed to do. iconic behaviour, honestly.


🌸 SEE ALSO 🌸


and that's the tea, bestie πŸ’… this lil page lives in the Allegro reference manual, filed under al_get_fs_entry_mode(3alleg5) β€” go forth and check your modes, fr fr 🫢✨

πŸ“¦ where this page comes from