pack_fseek(3alleg4) v7 man page | unix.com

Man Page: pack_fseek

Operating Environment: v7

Section: 3alleg4

pack_fseek(3alleg4)						  Allegro manual					       pack_fseek(3alleg4)

NAME
pack_fseek - Seeks inside a stream. Allegro game programming library. SYNOPSIS
#include <allegro.h> int pack_fseek(PACKFILE *f, int offset); DESCRIPTION
Moves the position indicator of the stream `f'. Unlike the standard fseek() function, this only supports forward movements relative to the current position and in read-only streams, so don't use negative offsets. Note that seeking is very slow when reading compressed files, and so should be avoided unless you are sure that the file is not compressed. Example: input_file = pack_fopen("data.bin", "r"); if (!input_file) abort_on_error("Couldn't open binary data!"); /* Skip some useless header before reading data. */ pack_fseek(input_file, 32); RETURN VALUE
Returns zero on success or a negative number on error, storing the error code in `errno'. SEE ALSO
pack_fopen(3alleg4), pack_fopen_chunk(3alleg4), expackf(3alleg4) Allegro version 4.4.2 pack_fseek(3alleg4)
Related Man Pages
expackf(3alleg4) - centos
expackf(3alleg4) - linux
expackf(3alleg4) - netbsd
expackf(3alleg4) - x11r4
expackf(3alleg4) - redhat
Similar Topics in the Unix Linux Community
The efficiency between GREP and SED???
[Tip] HACMP 7.1.3 and DB/2-Installation
Need to add prefix using sed or awk from cat the file
Need help to compile and create python64 bit (2.7.9) on Solaris10
Linux froze and got back working 5 days later, no reboot.