GPAK  1.0.0
A general-purpose archive library

◆ gpak_find_file()

GPAK_API struct filesystem_tree_file* gpak_find_file ( gpak_t _pak,
const char *  _path 
)
Brief Description:\n Finds a file in a G-PAK archive.

This function searches for a file with the specified _path in the G-PAK archive.

Parameters
_pakA pointer to the gpak_t.
_pathA string containing the path of the file to find.
Returns
A pointer to the found file node or NULL if not found.

Definition at line 381 of file gpak.c.

382 {
383  if (_pak == NULL)
384  return NULL;
385 
386  return filesystem_tree_find_file(_pak->root_, _path);
387 }
GPAK_API filesystem_tree_file_t * filesystem_tree_find_file(filesystem_tree_node_t *_root, const char *_path)
struct filesystem_tree_node * root_
Definition: gpak_data.h:260

References filesystem_tree_find_file(), and gpak::root_.