From 2d1cfb1f1c90fe4cbd2eec4da79484f8727dd670 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Wed, 8 Nov 2023 23:53:20 +0100 Subject: Basic reading of files --- file.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 file.h (limited to 'file.h') diff --git a/file.h b/file.h new file mode 100644 index 0000000..31a6e7d --- /dev/null +++ b/file.h @@ -0,0 +1,13 @@ +#ifndef FILE_H +#define FILE_H + +#include + +struct FileContent { + const char *content; + size_t count; +}; + +struct FileContent read_entire_file(const char *file_path); + +#endif -- cgit v1.2.3