diff --git a/build/test/out/c/quizduell.o b/build/test/out/c/quizduell.o index f65d99b..59da78b 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 910a983..86596dc 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 96ecbef..def05ed 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.016160799999852316 +:time: 0.016284099999893442 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass index a521971..d7808c4 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.03210450000005949 +:time: 0.016402499999912834 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index a04201c..0927522 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.015652599999839367 +:time: 0.016148200000088764 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index 7857222..56caab4 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.016132599999991726 +:time: 0.01684109999996508 diff --git a/src/quizduell.c b/src/quizduell.c index fd90c01..2ab3c45 100644 --- a/src/quizduell.c +++ b/src/quizduell.c @@ -122,6 +122,13 @@ void quizduell() { } + int verfuegbareKategorien = 0; + for (int i = 0; i < MAX_CATEGORIES; i++) { + if (kategorien[i].fragen != NULL) { + verfuegbareKategorien++; + } + } + return; }