al_make_path_canonical(3)

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

πŸŽ€ NAME πŸŽ€

Hii bestie, welcome to the al_make_path_canonical(3) page from the Library Functions Manual. The name tag is al_make_path_canonical β€” Allegro 5 API. That's it, that's the icon. πŸ‘‘

✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

bool al_make_path_canonical(ALLEGRO_PATH *path)

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so al_make_path_canonical() is doing path cleanup, and it's very clear about what it will and won't touch. Here's the vibe:

  • Removes any leading .. directory components in absolute paths. Leading parent-dir bits in absolute paths? Gone, bestie. πŸ‘‹
  • Removes all . directory components. Every single . component gets the boot. πŸ’…
Note that this does not collapse x/../y sections into y. This is by design. If /foo on your system is a symlink to /bar/baz, then /foo/../quux is actually /bar/quux, not /quux as a naive removal of .. components would give you. That's intentional, not a glow-up fail β€” respect the symlink tea. 🫢

That's the al_make_path_canonical(3) tea, bestie β€” source: Allegro reference manual; version/date: not printed in the original footer, so no invented timestamp here, periodt. πŸ’–βœ¨

πŸ“¦ 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