pack_fseek (3) - Linux Man Pages
pack_fseek: Seeks inside a stream. Allegro game programming library.
NAMEpack_fseek - Seeks inside a stream. Allegro game programming library.
DESCRIPTIONMoves 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);