al_get_current_directory(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

al_get_current_directory β€” Allegro 5 API


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro5/allegro.h>

char *al_get_current_directory(void)

πŸ’– DESCRIPTION πŸ’–

okay bestie, so this one is giving β€œwhere am I even standing right now?” energy. It returns the path to the current working directory, or NULL on failure. No cap, that NULL means it didn’t work.

The returned path is dynamically allocated and must be destroyed with al_free(3alleg5). Do not just leave it chilling, okay? Free your girl. πŸ’…

Allegro’s errno is filled in to indicate the error if there is a failure. So if something goes wrong, the vibe check happens in errno.

This function may not be implemented on some (virtual) filesystems. Like, some (virtual) filesystems simply said β€œnot today” and did not implement it.


πŸ‘‘ SEE ALSO πŸ‘‘


and that’s the whole page, bestie πŸŽ€ Source: Allegro reference manual. Page: al_get_current_directory(3alleg5). Date: not listed, so consider this your cute lil’ undated sign-off. periodt. πŸ’–

πŸ“¦ where this page comes from