summaryrefslogtreecommitdiff
path: root/file.h
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2023-11-08 23:53:20 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2023-11-08 23:53:20 +0100
commit2d1cfb1f1c90fe4cbd2eec4da79484f8727dd670 (patch)
tree7ea956b53e632b915388d8ef44fa560326a9c30a /file.h
parentf71732e188c847cd92d83f94902d57d0ed4d42fb (diff)
downloadcrep-2d1cfb1f1c90fe4cbd2eec4da79484f8727dd670.tar.gz
Basic reading of files
Diffstat (limited to 'file.h')
-rw-r--r--file.h13
1 files changed, 13 insertions, 0 deletions
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 <stdio.h>
+
+struct FileContent {
+ const char *content;
+ size_t count;
+};
+
+struct FileContent read_entire_file(const char *file_path);
+
+#endif