Browse Source

refactoring: Refactoring10

remotes/origin/Kevin
Kevin Schellberg 11 months ago
parent
commit
e50339b190
  1. BIN
      build/test/out/c/quizduell.o
  2. BIN
      build/test/out/test_quizduell.out
  3. 2
      build/test/results/test_casualQuiz.pass
  4. 2
      build/test/results/test_quizduell.pass
  5. 2
      build/test/results/test_timequiz.pass
  6. 2
      build/test/results/test_wwm.pass
  7. 4
      src/quizduell.c

BIN
build/test/out/c/quizduell.o

BIN
build/test/out/test_quizduell.out

2
build/test/results/test_casualQuiz.pass

@ -11,4 +11,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.020077599998330697
:time: 0.02163599999039434

2
build/test/results/test_quizduell.pass

@ -51,4 +51,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.039269100001547486
:time: 0.05005920000257902

2
build/test/results/test_timequiz.pass

@ -11,4 +11,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.022210399998584762
:time: 0.021275600010994822

2
build/test/results/test_wwm.pass

@ -11,4 +11,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.024773599987383932
:time: 0.019954899995354936

4
src/quizduell.c

@ -166,8 +166,8 @@ void quizduell() {
zeigeVerfuegbareKategorien(kategorien);
printf("Your selection: ");
if (scanf("%s", auswahl) != 1) {
}
fgets(auswahl, sizeof(auswahl), stdin);
auswahl[strcspn(auswahl, "\n")] = '\0';
typedef int CategoryIndex;
CategoryIndex auswahlIndex = -1;

Loading…
Cancel
Save