diff options
author | Davide Beatrici <git@davidebeatrici.dev> | 2021-03-10 00:06:53 +0300 |
---|---|---|
committer | Davide Beatrici <git@davidebeatrici.dev> | 2021-03-10 00:06:53 +0300 |
commit | c798511e419ededd0cbe34a09f2aaca5111d9576 (patch) | |
tree | 040b3dde21f4e86509087330b8b40e7fe6d1ee82 /FileSystem.h | |
parent | afe882a6739dcb0efba5cc9fabd7647b98a9fbba (diff) |
Introduce HamcoreBuild(), for building archives
Diffstat (limited to 'FileSystem.h')
-rwxr-xr-x | FileSystem.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/FileSystem.h b/FileSystem.h index 3d61408..b4092c7 100755 --- a/FileSystem.h +++ b/FileSystem.h @@ -4,10 +4,16 @@ #include <stdbool.h> #include <stdio.h> -FILE *FileOpen(const char *path); +FILE *FileOpen(const char *path, const bool write); bool FileClose(FILE *file); bool FileRead(FILE *file, void *dst, const size_t size); +bool FileWrite(FILE *file, const void *src, const size_t size); + bool FileSeek(FILE *file, const size_t offset); +size_t FileSize(const char *path); + +const char *PathRelativeToBase(const char *full, const char *base); + #endif |