1al_get_current_directory(3)Library Functions Manualal_get_current_directory(3)
2
3
4
6 al_get_current_directory
7
9 #include <allegro5/allegro.h>
10
11 char *al_get_current_directory(void)
12
14 Returns the path to the current working directory, or NULL on failure.
15 The returned path is dynamically allocated and must be destroyed with
16 al_free(3).
17
18 Allegro's errno is filled in to indicate the error if there is a fail‐
19 ure. This function may not be implemented on some (virtual) filesys‐
20 tems.
21
23 al_get_errno(3), al_free(3)
24
25
26
27Allegro reference manual al_get_current_directory(3)