GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
pack_fseek(3) Allegro manual pack_fseek(3)

pack_fseek - Seeks inside a stream. Allegro game programming library.

#include <allegro.h>

int pack_fseek(PACKFILE *f, int offset);

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);

Returns zero on success or a negative number on error, storing the error code in `errno'.

pack_fopen(3), pack_fopen_chunk(3), expackf(3)
version 4.4.3 Allegro

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.