is_relative_filename(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

πŸŽ€ NAME πŸŽ€

okay bestie, so this is is_relative_filename from the Allegro manual, and she does exactly what it says on the tin: returns TRUE if the filename is relative. That's it, that's the whole slay. It lives in the Allegro game programming library πŸ’–


✨ SYNOPSIS ✨

she shows up in your code like this, no cap:

#include <allegro.h>

int is_relative_filename(const char *filename);

πŸ’… DESCRIPTION πŸ’…

Returns TRUE if the filename is relative, or FALSE if it is absolute. main character energy fr fr ✨

lowkey important: note that an absolute filename under DOS (with a device separator) will be considered as relative under Unix, because there absolute paths always start with a slash. so like… context matters, bestie 😭

πŸ¦‹ SEE ALSO πŸ¦‹


This was is_relative_filename(3) from the Allegro manual, version 4.4.3. bye bestie, go vibe check your filenames πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from