DOKK / manpages / debian 10 / allegro4-doc / fix_filename_case.3alleg4.en
fix_filename_case(3alleg4) Allegro manual fix_filename_case(3alleg4)

fix_filename_case - Converts a filename to a standardised case. Allegro game programming library.

#include <allegro.h>

char *fix_filename_case(char *path);

Converts the filename stored in `path' to a standardised case. On DOS platforms, they will be entirely uppercase. On other platforms this function doesn't do anything. Example:


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

Returns a copy of the `path' parameter.

fix_filename_slashes(3alleg4), canonicalize_filename(3alleg4)

version 4.4.2 Allegro