al_remove_filename(3)
al_remove_filename(3) ποΈβ¨
okay so this is the al_remove_filename(3) page from the Library Functions Manual, and itβs lowkey a tiny baddie: one function, one job β delete a path. Allegro 5 API energy all the way. π
β¨ NAME β¨
al_remove_filenameβ Allegro 5 API, bestie. Thatβs the whole name section, and yes it ate. π
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
bool al_remove_filename(const char *path)
π DESCRIPTION π
Delete the given path from the filesystem, bestie. That path may be a file or an empty directory β yes, empty, okay? π
This is literally the same as al_remove_fs_entry(3), except it expects the path as a string. No cap. π§
It returns true on success and false on failure. And Allegroβs errno is filled in to indicate the error, so if it flops you can go check why. The way thatβs useful? Obsessed. ππ
π¦ SEE ALSO π¦
al_remove_fs_entry(3)β the sibling function this one is the same as, except for the string-path thing. Go read it, iykyk. π«Ά
Source/version: Allegro reference manual. Date: not specified in the original footer, so Iβm not making one up, periodt. al_remove_filename(3) out β slay and stay safe deleting your paths! π
β¨π
π¦ 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