al_get_path_extension(3)

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

okay bestie, welcome to al_get_path_extension(3) β€” straight out of the Library Functions Manual, and yes it’s the Allegro 5 API. this one is lowkey iconic for grabbing a file extension. let’s get into it πŸ’…βœ¨

πŸ’– NAME πŸ’–

al_get_path_extension β€” Allegro 5 API

🌸 SYNOPSIS 🌸

#include <allegro5/allegro.h>

const char *al_get_path_extension(const ALLEGRO_PATH *path)

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so al_get_path_extension literally returns a pointer to the start of the extension of the filename β€” like everything from the final dot (.) character onwards. no cap. πŸ”₯

if there’s no dot at all, it returns an empty string. that’s it. that’s the vibe. πŸ’€

⚠️ bestie, the returned pointer is valid only until the filename part of the path is modified in any way, or until the path is destroyed. do not get attached and stash that pointer for later β€” it is not a forever girlie πŸ˜­πŸ’”

πŸ‘‘ SEE ALSO πŸ‘‘


mwah πŸ’‹ this has been your Allegro reference manual moment, page al_get_path_extension(3) β€” source/version + date live in that footer energy, and the footer names the Allegro reference manual with no extra version/date numbers on this page. slay safely, 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