1al_get_fs_entry_name(3) al_get_fs_entry_name(3)
2
3
4
6 al_get_fs_entry_name - Allegro 5 API
7
9 #include <allegro5/allegro.h>
10
11 const char *al_get_fs_entry_name(ALLEGRO_FS_ENTRY *e)
12
14 Returns the entry's filename path. Note that the filesystem encoding
15 may not be known and the conversion to UTF-8 could in very rare cases
16 cause this to return an invalid path. Therefore it's always safest to
17 access the file over its ALLEGRO_FS_ENTRY(3) and not the path.
18
19 On success returns a read only string which you must not modify or
20 destroy. Returns NULL on failure.
21
22 Note: prior to 5.1.5 it was written: "... the path will not be
23 an absolute path if the entry wasn't created from an absolute
24 path". This is no longer true.
25
26
27
28Allegro reference manual al_get_fs_entry_name(3)