From c851f16d1df21d7579af72d842521b951261b092 Mon Sep 17 00:00:00 2001 From: Vincent Douillet Date: Thu, 2 Dec 2021 22:46:01 +0100 Subject: day 1 & 2 --- input.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 input.h (limited to 'input.h') 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); -- cgit v1.2.3