is_relative_filename(3alleg4)
β¨ NAME β¨
is_relative_filename β returns TRUE if the filename is relative, bestie. Part of the Allegro game programming library, so you already know it's iconic π
πΈ SYNOPSIS πΈ
#include <allegro.h>
int is_relative_filename(const char *filename);
π¦ DESCRIPTION π¦
Okay so, this one is lowkey simple but the vibes matter. You hand it a filename, and it hands you back TRUE if that filename is relative, or FALSE if it's absolute. That's it. That's the whole function. No cap. π
β οΈ But wait β the tea β is that an absolute filename under DOS (one with a device separator) will be considered relative under Unix. Why? Because on Unix, absolute paths always start with a slash, periodt. So like, different platform, different rules, and this function is judging you by Unix's standards. π
π SEE ALSO π
Go check those out too, they're giving the same energy fr fr π
Allegro version 4.4.3 β mwah, that's the whole page, ily, go write some slay code π«Άβ¨π
π¦ 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