exists(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

πŸ’– exists(3) β€” the Allegro manual, but make it cute ✨

okay bestie, so this is exists from the Allegro game programming library, section 3 of the manual. it's the shortcut version of file_exists() but for normal files only. short king energy, honestly. πŸ‘‘


🌸 NAME 🌸

exists β€” a shortcut version of file_exists() for normal files. part of the Allegro game programming library. πŸŽ€


✨ SYNOPSIS ✨

#include <allegro.h>

int exists(const char *filename);

like. that's it. that's the whole vibe. πŸ¦‹


πŸ’… DESCRIPTION πŸ’…

so exists() is literally just a shortcut version of file_exists(), except it's checking for normal files. and when i say normal i mean it, bestie β€” these files can have the archive or read-only bits set, no problem, we love that for them πŸ’–

but the way that it will not count: files that are hidden, directories, system files, etc. nope. not today. not on her watch. πŸ™ˆ

it's giving "i only associate with normal files." main character energy fr fr. 🌈


🫢 RETURN VALUE 🫢

  • returns non-zero if the file exists ✨
  • returns zero if it doesn't 😭

simple. iconic. no notes. πŸ’―


πŸ‘‘ SEE ALSO πŸ‘‘

go read those too, iykyk. 🧚


πŸ’€ reminder bestie: this one is exists(3) β€” don't go confusing her with the other file-checking girlies. she's the shortcut, and she's very specific about which files she'll acknowledge. πŸ“

Allegro version 4.4.3 β€” mwah, that's the whole page, thanks for coming to my ted talk, go write some games πŸ’œπŸŽ€βœ¨

πŸ“¦ where this page comes from