summaryrefslogtreecommitdiffstats
path: root/include/questions.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/questions.h20
1 files changed, 20 insertions, 0 deletions
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 @@
1#pragma once
2#include <stddef.h>
3
4typedef struct {
5 char **general;
6 char **major;
7 size_t general_count;
8 size_t major_count;
9} QuestionSet;
10
11/**
12 * Load questions from file.
13 * Returns EXIT_SUCCESS or EXIT_FAILURE.
14 */
15int load_questions(const char *filename, QuestionSet *qs);
16
17/**
18 * Free all allocated memory in QuestionSet.
19 */
20void free_questions(QuestionSet *qs);