---
name: "fix_filename_case"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/fix_filename_case"
---

# fix\_filename\_case(3alleg)

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

## NAME

fix\_filename\_case - Converts a filename to a standardised case. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**char \*fix\_filename\_case(char \*path);**

## DESCRIPTION

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);
```

## RETURN VALUE

Returns a copy of the \`path' parameter.

## SEE ALSO

[**fix\_filename\_slashes**(3alleg)](/fix_filename_slashes/3alleg.md), [**canonicalize\_filename**(3alleg)](/canonicalize_filename/3alleg.md)
