summaryrefslogtreecommitdiff
path: root/input.h
diff options
context:
space:
mode:
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);