al_make_directory(3alleg5)
π al_make_directory π
okay bestie, welcome to the Allegro 5 API corner of the Allegro reference manual, where we make folders like it's nothing π this one's al_make_directory(3alleg5) and she's a whole vibe.
β¨ NAME β¨
al_make_directory β the Allegro 5 API function that just. makes. a directory. slay π¦
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
bool al_make_directory(const char *path)
like, one include, one call, zero drama π
π« DESCRIPTION π«
So here's the tea: this function creates a new directory on the filesystem. and not just that one directory either β she also creates any parent directories as needed, because she's a generous queen π you want a folder three levels deep? she's already on it, building the whole little path family for you. main character energy fr fr β¨
And the returns? Here's how she reports back:
- Returns
trueon success β and yes, that includes if the directory already exists, so she's not gonna be weird about it if the folder was already there. she's chill like that π«Ά - Otherwise returns
falseon error. π
And when things go sideways, she fills in Allegro's errno to indicate the error β so go check that if you're confused about why she said no.
lowkey reminder: false means check your errno, bestie, don't just sit there guessing π
π SEE ALSO π
al_get_errno(3alleg5)β the one you go read when she hits you with thatfalseπ
and that's the whole page, periodt π mwah, tysm for reading, this was al_make_directory(3alleg5) from the Allegro reference manual β go forth and make folders, icon, you got this πβ¨πΈ
π¦ 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