1al_fopen_fd(3)             Library Functions Manual             al_fopen_fd(3)
2
3
4

NAME

6       al_fopen_fd
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              ALLEGRO_FILE *al_fopen_fd(int fd, const char *mode)
12

DESCRIPTION

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
16       description 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

SEE ALSO

26       al_fopen(3)
27
28
29
30Allegro reference manual                                        al_fopen_fd(3)
Impressum