pack_fseek man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

pack_fseek(3)			Allegro manual			 pack_fseek(3)

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 off‐
       sets. Note that seeking is very slow when reading compressed files, and
       so  should  be  avoided	unless	you are sure that the file is not com‐
       pressed. 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(3), pack_fopen_chunk(3), expackf(3)

Allegro				 version 4.4.2			 pack_fseek(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net