From d235876f94f84dca15520a20bb476b916b927afb Mon Sep 17 00:00:00 2001 From: hachem Date: Sun, 30 Aug 2026 01:31:15 +0200 Subject: add: read files into memory --- src/io/file.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/io/file.h (limited to 'src/io/file.h') 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 +#include + +struct File +{ + char* data; + size_t size; +}; + +bool read_file(const char* path, struct File* out); +void free_file(struct File* file); -- cgit v1.3