From 80a734de03eaf3d534f95010653c47bf54389f48 Mon Sep 17 00:00:00 2001 From: Omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sun, 25 Feb 2024 12:50:39 +1100 Subject: new string function signatures just dropped --- src/platform/file.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/platform/file.h') 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 +#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 -- cgit v1.2.3-70-g09d2