GPAK  1.0.0
A general-purpose archive library

◆ gpak_fgets()

GPAK_API char* gpak_fgets ( gpak_file_t _file,
char *  _buffer,
int  _max 
)
Brief Description:\n Reads a line from a G-PAK file.

This function reads a line from the specified G-PAK file and stores it in the provided _buffer.

Parameters
_fileA pointer to the gpak_file_t.
_bufferA pointer to the buffer where the line will be stored.
_maxThe maximum number of characters to read (including the null-terminator).
Returns
A pointer to the _buffer or NULL if the end of the file is reached.

Definition at line 440 of file gpak.c.

441 {
442  return fgets(_buffer, _max, _file->stream_);
443 }
FILE * stream_
Definition: gpak_data.h:285

References gpak_file::stream_.