1pack_feof(3)                    Allegro manual                    pack_feof(3)
2
3
4

NAME

6       pack_feof  -  Returns nonzero as soon as you reach the end of the file.
7       Allegro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       int pack_feof(PACKFILE *f);
14

DESCRIPTION

16       Finds out if you have reached the end of the file. It does not wait for
17       you  to attempt to read beyond the end of the file, contrary to the ISO
18       C feof() function. The only way to know whether you  have  read  beyond
19       the  end of the file is to check the return value of the read operation
20       you use (and be wary of pack_*getl() as EOF  is  also  a  valid  return
21       value with these functions).
22

RETURN VALUE

24       Returns non-zero if you are at the end of the file, zero otherwise.
25
26

SEE ALSO

28       pack_fopen(3), pack_fopen_chunk(3), pack_ferror(3)
29
30
31
32Allegro                          version 4.4.3                    pack_feof(3)
Impressum