GPAK  1.0.0
A general-purpose archive library

◆ gpak_ungetc()

GPAK_API int gpak_ungetc ( gpak_file_t _file,
int  _character 
)
Brief Description:\n Unreads a character from a G-PAK file.

This function pushes back the specified _character into the G-PAK file's read buffer.

Parameters
_fileA pointer to the gpak_file_t.
_characterThe character to unget.
Returns
The character pushed back or EOF if an error occurred.

Definition at line 445 of file gpak.c.

446 {
447  return ungetc(_character, _file->stream_);
448 }
FILE * stream_
Definition: gpak_data.h:285

References gpak_file::stream_.