1al_fopen_fd(3) al_fopen_fd(3)
2
3
4
6 al_fopen_fd - Allegro 5 API
7
9 #include <allegro5/allegro.h>
10
11 ALLEGRO_FILE *al_fopen_fd(int fd, const char *mode)
12
14 Create an ALLEGRO_FILE(3) object that operates on an open file descrip‐
15 tor using stdio routines. See the documentation of fdopen() for a de‐
16 scription of the 'mode' argument.
17
18 Returns an ALLEGRO_FILE object on success or NULL on an error. On an
19 error, the Allegro errno will be set and the file descriptor will not
20 be closed.
21
22 The file descriptor will be closed by al_fclose(3) so you should not
23 call close() on it.
24
26 al_fopen(3)
27
28
29
30Allegro reference manual al_fopen_fd(3)