pack_fopen_vtable (3) - Linux Manuals
pack_fopen_vtable: Allegro game programming library.
Command to display pack_fopen_vtable
manual in Linux: $ man 3 pack_fopen_vtable
NAME
pack_fopen_vtable - Allegro game programming library.
SYNOPSIS
#include <allegro.h>
PACKFILE *pack_fopen_vtable(const PACKFILE_VTABLE *vtable, void *userdata);
DESCRIPTION
Creates a new packfile structure that uses the functions specified in
the vtable instead of the standard functions. The data pointer by `vtable'
and `userdata' must remain available for the lifetime of the created
packfile.
While the created packfile structure can be used with other Allegro
functions, there are two limitations. First, opening chunks using
pack_fopen_chunk() on top of the returned packfile is not possible at this
time. And packfile_password() does not have any effect on packfiles opened
with pack_fopen_vtable().
RETURN VALUE
On success, it returns a pointer to a PACKFILE structure, and on error it
returns NULL and stores an error code in `errno'.
Pages related to pack_fopen_vtable
- pack_fopen_chunk (3) - Opens a sub-chunk of a file. Allegro game programming library.
- pack_fopen (3) - Opens a file according to mode. 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_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_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.