al_get_current_directory(3alleg5)
β¨ 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
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms