diff --git a/build/test/out/c/quizduell.o b/build/test/out/c/quizduell.o index 0919ac3..9e897df 100644 Binary files a/build/test/out/c/quizduell.o and b/build/test/out/c/quizduell.o differ diff --git a/build/test/out/test_quizduell.out b/build/test/out/test_quizduell.out index f0d9177..3607924 100755 Binary files a/build/test/out/test_quizduell.out and b/build/test/out/test_quizduell.out differ diff --git a/build/test/results/test_casualQuiz.pass b/build/test/results/test_casualQuiz.pass index c2a7f76..3054f36 100644 --- a/build/test/results/test_casualQuiz.pass +++ b/build/test/results/test_casualQuiz.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.016023700000005192 +:time: 0.016471099999989747 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass index 6bdebc1..b2a7928 100644 --- a/build/test/results/test_quizduell.pass +++ b/build/test/results/test_quizduell.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.029750499999977364 +:time: 0.030837499999961437 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index dec4f9d..5c20d1a 100644 --- a/build/test/results/test_timequiz.pass +++ b/build/test/results/test_timequiz.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.016164499999945292 +:time: 0.01623769999991964 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index c4a08c4..b1bec0d 100644 --- a/build/test/results/test_wwm.pass +++ b/build/test/results/test_wwm.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.01664180000000215 +:time: 0.01627900000005411 diff --git a/src/quizduell.c b/src/quizduell.c index 7672658..6ddb0e4 100644 --- a/src/quizduell.c +++ b/src/quizduell.c @@ -23,6 +23,13 @@ void zeigeVerfuegbareKategorien(Kategorie kategorien[]) { if (kategorien[2].fragen != NULL) printf("Sports\n"); } +void befreieKategorie(Kategorie* kategorie) { + free(kategorie->fragen); + kategorie->fragen = NULL; + kategorie->anzahlFragen = 0; + kategorie->joker = 0; +} + void quizduell() { printf("Welcome to the singleplayer quizduell!\n");