1al_identify_bitmap_f(3) al_identify_bitmap_f(3)
2
3
4
6 al_identify_bitmap_f - Allegro 5 API
7
9 #include <allegro5/allegro.h>
10
11 char const *al_identify_bitmap_f(ALLEGRO_FILE *fp)
12
14 Tries to guess the bitmap file type of the open ALLEGRO_FILE by reading
15 the first few bytes. By default Allegro cannot recognize any file
16 types, but calling al_init_image_addon(3) will add detection of (some
17 of) the types it can read. You can also use al_register_bitmap_identi‐
18 fier(3) to add identification for custom file types.
19
20 Returns a pointer to a static string with a file extension for the
21 type, including the leading dot. For example ".png" or ".jpg".
22 Returns NULL if the bitmap type cannot be determined.
23
25 5.1.12
26
28 al_init_image_addon(3), al_identify_bitmap(3), al_register_bitmap_iden‐
29 tifier(3)
30
31
32
33Allegro reference manual al_identify_bitmap_f(3)