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

NAME

6       pack_ferror  -  Tells  if  an error occurred during an operation on the
7       stream. Allegro game programming library.
8

SYNOPSIS

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

DESCRIPTION

16       Since EOF is used to report errors by some functions, it's often better
17       to use the pack_feof() function to check explicitly for end of file and
18       pack_ferror() to check for errors. Both functions check indicators that
19       are  part  of  the internal state of the stream to detect correctly the
20       different situations.
21

RETURN VALUE

23       Returns nonzero if the error indicator for the stream is  set,  meaning
24       that an error has occurred during a previous operation on the stream.
25
26

SEE ALSO

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