From a2afca302c68b8b5d7c3bec13378180b60a3ac17 Mon Sep 17 00:00:00 2001 From: Filip Wandzio Date: Sun, 1 Mar 2026 11:29:12 +0100 Subject: Scaffold project Signed-off-by: Filip Wandzio --- include/questions.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 include/questions.h (limited to 'include/questions.h') diff --git a/include/questions.h b/include/questions.h new file mode 100644 index 0000000..75bc751 --- /dev/null +++ b/include/questions.h @@ -0,0 +1,20 @@ +#pragma once +#include + +typedef struct { + char **general; + char **major; + size_t general_count; + size_t major_count; +} QuestionSet; + +/** + * Load questions from file. + * Returns EXIT_SUCCESS or EXIT_FAILURE. + */ +int load_questions(const char *filename, QuestionSet *qs); + +/** + * Free all allocated memory in QuestionSet. + */ +void free_questions(QuestionSet *qs); -- cgit v1.2.3