diff options
author | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-02-25 12:50:39 +1100 |
---|---|---|
committer | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-02-25 12:50:39 +1100 |
commit | 80a734de03eaf3d534f95010653c47bf54389f48 (patch) | |
tree | 2b75a7516116e5e66ead39b48bd1ceb6b67a4af3 /src/platform/file.h | |
parent | 4b9ab2ec5acf2ecf2e96c38733a835b964664171 (diff) |
new string function signatures just dropped
Diffstat (limited to 'src/platform/file.h')
-rw-r--r-- | src/platform/file.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/platform/file.h b/src/platform/file.h index b965ceb..fa09891 100644 --- a/src/platform/file.h +++ b/src/platform/file.h @@ -6,6 +6,14 @@ */ #pragma once -#include <stdbool.h> +#include "defines.h" +#include "str.h" + +typedef struct str8_opt { + str8 contents; + bool has_value; +} str8_opt; const char* string_from_file(const char* path); + +str8_opt str8_from_file(arena* a, str8 path);
\ No newline at end of file |