exists(3alleg4)

✨ exists β€” like, the girlies' shortcut for checking if a file is actually there πŸ’–

okay bestie, welcome to the Allegro game programming library corner of the manpages, where we keep things cute and efficient. this one's called exists, and she's a whole vibe. πŸŽ€


🌸 SYNOPSIS 🌸

#include <allegro.h>

int exists(const char *filename);

πŸ¦‹ DESCRIPTION πŸ¦‹

so, exists is literally just a shortcut version of file_exists(), but she's picky in a very specific way β€” she's checking for normal files only. πŸ’…

what counts as a normal file, you ask? one that may have the archive or read-only bits set, and that's fine, that's valid, we respect her. but she is not here for:

  • hidden files πŸ™ˆ
  • directories πŸ“
  • system files βš™οΈ
  • etc., etc., you get the vibe

basically, if it's giving "weird special file," exists is gonna say no. she's got standards, no cap. πŸ‘‘


⭐ RETURN VALUE ⭐

  • if the file exists β†’ you get a non-zero value back, slay ✨
  • if it doesn't exist β†’ you get zero, and that's just how it is 😭

πŸ’œ SEE ALSO πŸ’œ


and that's the whole page, bestie!! go forth and check your files with confidence 🫢 this was brought to you by Allegro version 4.4.3 β€” iconic, legendary, the moment. periodt. πŸ’–βœ¨πŸŒˆ