Trace Engine
A Raycaster Engine in C
Loading...
Searching...
No Matches
trc_file_manager.c File Reference
#include "trc_file_manager.h"
#include "log.h"
#include <stdio.h>
#include <stdlib.h>

Macros

#define WRITE_MODE   "wb"
 
#define READ_MODE   "rb"
 

Functions

const char * get_file_content (const char *filepath)
 

Macro Definition Documentation

◆ READ_MODE

#define READ_MODE   "rb"

◆ WRITE_MODE

#define WRITE_MODE   "wb"

Function Documentation

◆ get_file_content()

const char * get_file_content ( const char *  filepath)

Returns the content of the given file in the form of a string

Note
Caller MUST free the returned pointer