pack_feof (3) - Linux Manuals
pack_feof: Returns nonzero as soon as you reach the end of the file. Allegro game programming library.
Command to display pack_feof
manual in Linux: $ man 3 pack_feof
NAME
pack_feof - Returns nonzero as soon as you reach the end of the file. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
int pack_feof(PACKFILE *f);
DESCRIPTION
Finds out if you have reached the end of the file. It does not wait for you
to attempt to read beyond the end of the file, contrary to the ISO C feof()
function. The only way to know whether you have read beyond the end of the
file is to check the return value of the read operation you use (and be
wary of pack_*getl() as EOF is also a valid return value with these
functions).
RETURN VALUE
Returns non-zero if you are at the end of the file, zero otherwise.
Pages related to pack_feof
- pack_ferror (3) - Tells if an error occurred during an operation on the stream. 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.