delete_file(3alleg4)
πΎ delete_file β the Allegro manual, bestie edition πΎ
okay so real talk, this one lives in the Allegro manual, section 3alleg4, and it's about yeeting files off your disk. yes it's short. no it's not boring. it's iconic in its simplicity, fr fr.
β¨ NAME β¨
delete_file β Removes a file from the disk. Part of the Allegro game programming library, obviously. π
β¨ SYNOPSIS β¨
#include <allegro.h>
int delete_file(const char *filename);
β¨ DESCRIPTION β¨
So basically, delete_file removes a file from the disk. That's the whole vibe. You hand it a filename, it makes the file not exist anymore. poof. gone. slay. π¦
But listen, bestie, you can't delete directories, though. nope. not a thing. don't even try it. it's giving "not my job" and honestly? respect. directories stay exactly where they are. periodt.
β¨ RETURN VALUE β¨
- Returns zero on success β yay, the file is gone, we ate π
- Returns non-zero on failure β something went wrong, sad girl hours π
β οΈ no cap: check that return value. zero means win. anything else means the file is still there living its best life.
and that's the whole page, bestie π stay hydrated, back up your files, and remember: this came straight out of the Allegro manual, version 4.4.3, delete_file(3alleg4) β mwah ππ
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms