Accessing local files within the repo. More...
#include <stdio.h>
Go to the source code of this file.
Functions | |
int | set_local_directory (char *dir) |
Sets the directory of the executable so we can get relaitve paths. More... | |
int | get_local_file (char *out, char *file) |
Gets a file relative to the path of the executable. More... | |
Variables | |
static char * | local_dir |
Set to the directory of the executabe. More... | |
Accessing local files within the repo.
Definition in file local_files.c.
int get_local_file | ( | char * | out, |
char * | file | ||
) |
Gets a file relative to the path of the executable.
Definition at line 38 of file local_files.c.
int set_local_directory | ( | char * | dir | ) |
Sets the directory of the executable so we can get relaitve paths.
Definition at line 33 of file local_files.c.
|
static |
Set to the directory of the executabe.
Definition at line 31 of file local_files.c.