pack_fread (3) - Linux Manuals
pack_fread: Reads n bytes from the stream. Allegro game programming library.
Command to display pack_fread
manual in Linux: $ man 3 pack_fread
NAME
pack_fread - Reads n bytes from the stream. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
long pack_fread(void *p, long n, PACKFILE *f);
DESCRIPTION
Reads `n' bytes from the stream `f', storing them at the memory location
pointed to by `p'. Example:
unsigned char buf[256];
...
if (pack_fread(buf, 256, input_file) != 256)
abort_on_error("Truncated input file!");
RETURN VALUE
Returns the number of bytes read, which will be less than `n' if EOF is
reached or an error occurs. Error codes are stored in errno.
Pages related to pack_fread
- 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_feof (3) - Returns nonzero as soon as you reach the end of the file. Allegro game programming library.
- pack_ferror (3) - Tells if an error occurred during an operation on the stream. 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_fseek (3) - Seeks inside a stream. Allegro game programming library.