Updated filemanager to use dynamically allocated strings

converted filename to dynamically allocated string
created cstr_helper
This commit is contained in:
Michael Tryby
2019-04-02 11:05:56 -04:00
parent 2c6d4ca74d
commit c98d13de80
7 changed files with 73 additions and 24 deletions
+3 -1
View File
@@ -18,6 +18,8 @@
#include <stdio.h>
#include <stdarg.h>
#include "cstr_helper.h"
// F_OFF Must be a 8 byte / 64 bit integer for large file support
#ifdef _WIN32 // Windows (32-bit and 64-bit)
@@ -42,7 +44,7 @@ file_handle_t *create_file_manager();
void delete_file_manager(file_handle_t *file_handle);
void get_filename(file_handle_t *file_handle, char **filename);
void get_filename(file_handle_t *file_handle, char **filename, size_t *size);
int open_file(file_handle_t *file_handle, const char *filename, const char *file_mode);