fix_filename_case(3alleg4)

✨ NAME ✨

fix_filename_case β€” converts a filename to a standardised case. Part of the Allegro game programming library, bestie! This page is fix_filename_case(3alleg4) from the Allegro manual, btw. πŸ’…


πŸ“œ SYNOPSIS πŸ“œ

#include <allegro.h>

char *fix_filename_case(char *path);

πŸ’– DESCRIPTION πŸ’–

Okay so basically: fix_filename_case takes the filename stored in path and converts it to a standardised case. On DOS platforms, that means the whole thing gets turned ENTIRELY UPPERCASE β€” like it's yelling, but in a filename way. On other platforms? This function literally does nothing. It's giving "I'm just here for the vibe check" energy. 😭

Example, because examples eat every time:

get_executable_name(name, sizeof(name));
fix_filename_case(name);
allegro_message("Running `%s'\n", name);

πŸ” RETURN VALUE πŸ”

It returns a copy of the path parameter. So you get your path back, just as a copy β€” no cap. πŸ’–


πŸ‘€ SEE ALSO πŸ‘€


🌸 that's the whole page, bestie! This was fix_filename_case(3alleg4) from the Allegro manual, version 4.4.3. Stay iconic. πŸ’…βœ¨