1al_fget_ustr(3)                                                al_fget_ustr(3)
2
3
4

NAME

6       al_fget_ustr - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              ALLEGRO_USTR *al_fget_ustr(ALLEGRO_FILE *f)
12

DESCRIPTION

14       Read  a  string of bytes terminated with a newline or end-of-file.  The
15       line terminator(s), if any, are included in the returned string.
16
17       On success returns a pointer to a  new  ALLEGRO_USTR  structure.   This
18       must  be freed eventually with al_ustr_free(3).  Returns NULL if an er‐
19       ror occurred or if the end of file  was  reached  without  reading  any
20       bytes.
21
22       See al_fopen(3) about translations of end-of-line characters.
23

SEE ALSO

25       al_fgetc(3), al_fgets(3)
26
27
28
29Allegro reference manual                                       al_fget_ustr(3)
Impressum