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. πβ¨π
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms