GPAK  1.0.0
A general-purpose archive library

◆ gpak_fseek()

GPAK_API long gpak_fseek ( gpak_file_t _file,
long  _offset,
int  _origin 
)
Brief Description:\n Sets the file position in a G-PAK file.

This function sets the file position in the specified G-PAK file according to the _offset and _origin.

Parameters
_fileA pointer to the gpak_file_t.
_offsetThe offset in bytes from the _origin to set the new file position.
_originThe reference position in the file (SEEK_SET, SEEK_CUR, or SEEK_END).
Returns
Zero if the operation is successful, or -1 if an error occurred.

Definition at line 460 of file gpak.c.

461 {
462  return fseek(_file->stream_, _offset, _origin);
463 }
FILE * stream_
Definition: gpak_data.h:285

References gpak_file::stream_.