exists(3)
π 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
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms