summaryrefslogtreecommitdiff
path: root/input.h
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2021-12-02 22:46:01 +0100
committerVincent Douillet <vincent@vdouillet.fr>2021-12-02 22:46:01 +0100
commitc851f16d1df21d7579af72d842521b951261b092 (patch)
tree2f1c4672b53afb8c575ff7c64d88b9020034219d /input.h
day 1 & 2
Diffstat (limited to 'input.h')
-rw-r--r--input.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/input.h b/input.h
new file mode 100644
index 0000000..9e6762e
--- /dev/null
+++ b/input.h
@@ -0,0 +1,7 @@
+size_t count_lines(FILE* file);
+
+int read_lines_as_int(FILE* file, int* result, int resultSize);
+
+int read_lines_as_string(FILE* file, char** result, int resultSize);
+
+void free_strings(char** strings, size_t stringCount);