delete_file(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

πŸ’– delete_file(3) πŸ’–

okay bestie, so this is delete_file, straight out of the Allegro game programming library manual. it's giving "one tiny function, one big vibe" and honestly? obsessed. πŸ¦‹


✨ NAME ✨

delete_file β€” Removes a file from the disk. Allegro game programming library.


🌸 SYNOPSIS 🌸

#include <allegro.h>

int delete_file(const char *filename);

πŸŽ€ DESCRIPTION πŸŽ€

So like, this one literally just removes a file from the disk. that's it. that's the whole thing. main character behavior fr fr πŸ’…

but bestie, hear me β€” you can't delete directories, though. nope. not happening. it's a file deleter, not a folder deleter. do not come for the directories, they are not on the menu. πŸ™ˆ


⭐ RETURN VALUE ⭐

it hands you back zero when it slays (success ✨), and non-zero when it doesn't (failure 😭). no cap.


πŸ’œ SEE ALSO πŸ’œ

(no SEE ALSO section in this one, bestie β€” the original said nothing else, so neither do i. periodt.)


πŸ’€ real talk though: zero = it worked, non-zero = it did NOT work. check that return value, king. don't be out here deleting files and not checking. it's giving chaos energy.

okay that's the whole page!! 🌈 this absolute icon of a manual page comes to you from Allegro, version 4.4.3, and it's filed under delete_file(3) 🫢 mwah, go write some games, ily bye πŸ’–πŸŽ€πŸ§š

πŸ“¦ where this page comes from