al_create_path_for_directory(3alleg5)

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

✨ al_create_path_for_directory ✨

okay bestie, welcome to the Allegro 5 API corner of the manual πŸ’… this one lives in allegro5/allegro.h, it's part of the Allegro reference manual, and it's lowkey one of the cutest little path helpers ever. sit down, hydrate, let's go πŸ“


🌸 NAME 🌸

al_create_path_for_directory β€” Allegro 5 API πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro5/allegro.h>

ALLEGRO_PATH *al_create_path_for_directory(const char *str)

πŸ’– DESCRIPTION πŸ’–

so basically? this is literally the same as al_create_path(3alleg5) πŸ’« β€” same energy, same job β€” BUT it treats the string you hand it as a directory path instead of a regular path.

and because it's a directory path, the filename component of the returned path will always be empty. like, always always. no cap πŸ™ˆ that's just how it is.

fr fr: directory in, no filename out. that's the whole vibe. ✨

πŸ”₯ SEE ALSO πŸ”₯


and that's the tea β˜• this page is from the Allegro reference manual, for Allegro 5 (al_create_path_for_directory(3alleg5)), and it's giving very much "short but iconic" πŸ‘‘ go forth and build those directory paths, you absolute main character πŸ’œπŸ«Ά

πŸ“¦ where this page comes from