diff options
| author | Filip Wandzio <contact@philw.dev> | 2026-03-01 17:45:00 +0100 |
|---|---|---|
| committer | Filip Wandzio <contact@philw.dev> | 2026-03-01 17:45:00 +0100 |
| commit | 9e9c1b21569faeabd33716e4153a881e2eed7134 (patch) | |
| tree | f3a7ad21aed4b1c4f51c3ee308ffef88430deafc /include/questions.h | |
| parent | 57b077a4788b7fb5ed6add1df4ba3f15c9e6349b (diff) | |
| download | ysnp-9e9c1b21569faeabd33716e4153a881e2eed7134.tar.gz ysnp-9e9c1b21569faeabd33716e4153a881e2eed7134.zip | |
Signed-off-by: Filip Wandzio <contact@philw.dev>
Diffstat (limited to 'include/questions.h')
| -rw-r--r-- | include/questions.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/questions.h b/include/questions.h index 75bc751..95ce286 100644 --- a/include/questions.h +++ b/include/questions.h | |||
| @@ -2,19 +2,19 @@ | |||
| 2 | #include <stddef.h> | 2 | #include <stddef.h> |
| 3 | 3 | ||
| 4 | typedef struct { | 4 | typedef struct { |
| 5 | char **general; | 5 | char** general; |
| 6 | char **major; | 6 | char** major; |
| 7 | size_t general_count; | 7 | size_t general_count; |
| 8 | size_t major_count; | 8 | size_t major_count; |
| 9 | } QuestionSet; | 9 | } QuestionSet; |
| 10 | 10 | ||
| 11 | /** | 11 | /** |
| 12 | * Load questions from file. | 12 | * Load questions from file. |
| 13 | * Returns EXIT_SUCCESS or EXIT_FAILURE. | 13 | * Returns EXIT_SUCCESS or EXIT_FAILURE. |
| 14 | */ | 14 | */ |
| 15 | int load_questions(const char *filename, QuestionSet *qs); | 15 | int load_questions(const char* filename, QuestionSet* qs); |
| 16 | 16 | ||
| 17 | /** | 17 | /** |
| 18 | * Free all allocated memory in QuestionSet. | 18 | * Free all allocated memory in QuestionSet. |
| 19 | */ | 19 | */ |
| 20 | void free_questions(QuestionSet *qs); | 20 | void free_questions(QuestionSet* qs); |
