diff options
| author | hachem <im@hachem.wtf> | 2026-09-08 12:00:49 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-09-08 12:00:49 +0200 |
| commit | 9d47486aac9cd1a4422b78ee273b7a27bf7b733a (patch) | |
| tree | a015067fe963f3a24e8f37a8b9cd581540b3bb8c /src/file.h | |
| parent | 21be45a904a0afc767214298721bd2bbce19a054 (diff) | |
refactor: flatten src and migrate to meson
Diffstat (limited to 'src/file.h')
| -rw-r--r-- | src/file.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/file.h b/src/file.h new file mode 100644 index 0000000..7d15bd0 --- /dev/null +++ b/src/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); |
