al_set_path_extension(3)
π NAME π
okay so bestie, welcome to the al_set_path_extension(3) page from the Library Functions Manual β itβs part of the Allegro 5 API, and itβs giving βletβs swap this pathβs extensionβ energy. β¨
al_set_path_extension β Allegro 5 API π«Ά
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
bool al_set_path_extension(ALLEGRO_PATH *path, char const *extension)
π DESCRIPTION π
So basically, this function replaces the extension of the path with the one you hand it. Like, it literally replaces everything from the final dot (.) character onward, including the dot. periodt. π
If the filename of the path has no extension, the given one gets appended. Cute, right? π¦
Usually, the new extension you supply should include a leading dot. iykyk. β¨
It returns false if the path contains no filename part β i.e. the filename part is the empty string. not it π
π SEE ALSO π
π cute little sign-off: this page is from the Allegro reference manual, for the Allegro 5 API, and ngl thereβs no date printed on it β so thatβs the whole footer tea, bestie. π«ΆπΈ
π¦ 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