GPAK  1.0.0
A general-purpose archive library

◆ gpak_fclose()

GPAK_API void gpak_fclose ( gpak_file_t _file)
Brief Description:\n Closes a G-PAK file.
This function closes the specified G-PAK file and deallocates any associated resources.
Parameters
_fileA pointer to the gpak_file_t to close.

Definition at line 470 of file gpak.c.

471 {
472  free(_file->data_);
473  fclose(_file->stream_);
474  free(_file);
475 }
FILE * stream_
Definition: gpak_data.h:285
char * data_
Definition: gpak_data.h:284

References gpak_file::data_, and gpak_file::stream_.

Referenced by gpak_fopen().