al_make_directory(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸ’… al_make_directory(3) β€” straight from the Library Functions Manual, bestie

Hi hi! This is the Allegro 5 API page for al_make_directory, and it’s lowkey a whole directory-making moment. ✨

πŸŽ€ NAME πŸŽ€

al_make_directory β€” Allegro 5 API

✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

bool al_make_directory(const char *path)

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so al_make_directory creates a new directory on the filesystem. And the way it’s giving helpful? It also creates any parent directories as needed. Parent-dir situation: handled. Periodt. πŸ’…

It returns true on success β€” and yes, that includes if the directory already exists, no cap. Otherwise it returns false on error. On error, it fills in Allegro’s errno to indicate the error. That’s the tea. 🫢

🌈 SEE ALSO 🌈


πŸ’– Footer sign-off realness: source/version is the Allegro reference manual, and the footer icon is al_make_directory(3). There’s no date on this page, so I’m not inventing one, bestie β€” mwah. πŸ’–

πŸ“¦ where this page comes from
  • arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms