aboutsummaryrefslogtreecommitdiff
path: root/src/io/file.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/io/file.h')
-rw-r--r--src/io/file.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/io/file.h b/src/io/file.h
new file mode 100644
index 0000000..7d15bd0
--- /dev/null
+++ b/src/io/file.h
@@ -0,0 +1,13 @@
+#pragma once
+
+#include <stddef.h>
+#include <stdbool.h>
+
+struct File
+{
+ char* data;
+ size_t size;
+};
+
+bool read_file(const char* path, struct File* out);
+void free_file(struct File* file);