pack_ferror (3) - Linux Manuals
pack_ferror: Tells if an error occurred during an operation on the stream. Allegro game programming library.
Command to display pack_ferror
manual in Linux: $ man 3 pack_ferror
NAME
pack_ferror - Tells if an error occurred during an operation on the stream. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
int pack_ferror(PACKFILE *f);
DESCRIPTION
Since EOF is used to report errors by some functions, it's often better to
use the pack_feof() function to check explicitly for end of file and
pack_ferror() to check for errors. Both functions check indicators that
are part of the internal state of the stream to detect correctly the
different situations.
RETURN VALUE
Returns nonzero if the error indicator for the stream is set, meaning
that an error has occurred during a previous operation on the stream.
Pages related to pack_ferror
- pack_feof (3) - Returns nonzero as soon as you reach the end of the file. Allegro game programming library.
- pack_fclose (3) - Closes a stream previously opened. Allegro game programming library.
- pack_fclose_chunk (3) - Closes a previously opened sub-chunk. Allegro game programming library.
- pack_fgets (3) - Reads a line from the stream. Allegro game programming library.
- pack_fopen (3) - Opens a file according to mode. Allegro game programming library.
- pack_fopen_chunk (3) - Opens a sub-chunk of a file. Allegro game programming library.
- pack_fopen_vtable (3) - Allegro game programming library.
- pack_fputs (3) - Writes a string to the stream. Allegro game programming library.
- pack_fread (3) - Reads n bytes from the stream. Allegro game programming library.
- pack_fseek (3) - Seeks inside a stream. Allegro game programming library.