diff --git a/build/test/out/c/quizduell.o b/build/test/out/c/quizduell.o index 06e8cb1..9281a14 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 deb4ec7..8a182a8 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 9269d11..95c16f9 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.01702869999996892 +:time: 0.01640070000007654 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass index 3e03b02..7b365ee 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.031989800000019386 +:time: 0.031963899999936984 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index b5df176..4b271e3 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.016469199999960438 +:time: 0.015579099999968093 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index 8e470eb..ef21bf8 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.016439999999988686 +:time: 0.01601919999995971 diff --git a/src/quizduell.c b/src/quizduell.c index feb71a3..37f991b 100644 --- a/src/quizduell.c +++ b/src/quizduell.c @@ -4,6 +4,10 @@ #include #include +int pruefeAntwort(QuizFrage frage, char antwort) { + return (frage.korrekteAntwort == antwort); +} + QuizFrage erstelleFrage(const char* frage, const char* antwortA, const char* antwortB, const char* antwortC, const char* antwortD, char korrekteAntwort) { QuizFrage neueFrage; strcpy(neueFrage.frage, frage);