---
name: "al_identify_bitmap_f"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_identify_bitmap_f/3alleg5"
---

# al\_identify\_bitmap\_f(3alleg5)

Allegro 5 API

## NAME

al\_identify\_bitmap\_f - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  char const *al_identify_bitmap_f(ALLEGRO_FILE *fp)
  ```

## DESCRIPTION

Tries to guess the bitmap file type of the open ALLEGRO\_FILE by reading the first few bytes. By default Allegro cannot recognize any file types, but calling al\_init\_image\_addon(3alleg5) will add detection of (some of) the types it can read. You can also use al\_register\_bitmap\_identifier(3alleg5) to add identification for custom file types.

Returns a pointer to a static string with a file extension for the type, including the leading dot. For example “.png” or “.jpg”. Returns NULL if the bitmap type cannot be determined.

## SINCE

5\.1.12

## SEE ALSO

al\_init\_image\_addon(3alleg5), al\_identify\_bitmap(3alleg5), al\_register\_bitmap\_identifier(3alleg5)
