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 πŸ«Άβœ¨πŸŽ€