My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions | Variables
local_files.c File Reference

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...
 

Detailed Description

Accessing local files within the repo.

Definition in file local_files.c.

Function Documentation

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.

Variable Documentation

char* local_dir
static

Set to the directory of the executabe.

Definition at line 31 of file local_files.c.