From ec2abf55ec8f37296f01948d71c191a4f34a5b00 Mon Sep 17 00:00:00 2001 From: Kevin Schellberg Date: Tue, 6 Feb 2024 12:45:44 +0100 Subject: [PATCH] refactoring: Refactoring7 --- build/test/out/c/quizduell.o | Bin 13546 -> 13570 bytes build/test/out/test_quizduell.out | Bin 131548 -> 131548 bytes build/test/results/test_casualQuiz.pass | 2 +- build/test/results/test_quizduell.pass | 2 +- build/test/results/test_timequiz.pass | 2 +- build/test/results/test_wwm.pass | 2 +- src/quizduell.c | 2 +- 7 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build/test/out/c/quizduell.o b/build/test/out/c/quizduell.o index 4a25d86531d8a9f0aa9d40f25a33d26797a31174..f81291b2be0839e2554ffa57e3944cb518823c94 100644 GIT binary patch delta 864 zcmYk3OK4M35Qb-Nl5&%qHl?X~HLn^m($?1afYz#&`oK`dSV1ENHQH;9)wHCEFVKKU zMMUH>h!un)y3{IUXMEI!;BzNk1<^&ZwmU_IBI4ZKaPTb7`OZI&Gc#vCed&aCaJ&xm zbx^ZLa9UeAi7ncP-S~+D7_u(b0Ic-^?4xZM!FEbx)Uq)G@S1M2b-@I1if?6l#?~Z# z!6@G4y^#Wv6Gw|N$>hObw9fY(ZM34PKcxKNhfHQmI+FuiUn-{#jbzg*NG_8N0c>=; z={_p7$?ris?e`~nf9&`2{?^}Fqs(xuo#epwTGstJRYegQcvq{(NZM9M+?WXbe*(dV_f_xB>>~GbW)HOmI~o&QySbjV z^GkJzllG+Gn3LF<*M;g? zq8p*T(K7#7{WbQ{SLO2gzYA-!KF6PA4ae|0b%!UgOdrFgHW!%W^-8zWrNo_Fk^_`x zStolt_IN8MOP3P$#+@6ySS&T)LHt@wMwansy5;fW#pS(nVUlNH<>Ux21$`6L%KaJE zUZxQHDUcP~RiRA@?Um4gTQFh+f({GHGjYBGC!7%CQ$cS8%?Psbl#GNiCZm`hLAwME j2ucgO$7IAZfV?`_O(TgUDG@ys zi&ctxSO=wo;KhpgS=ggmJ(M0QQdID2g(@`OqG$1qD}!^G`Mv-9m^W{x#_M^{=+zeB ztIzTz@R7CWKKiWp1GvNtG(Brg0Q*A#-7Jj>46-~X-N^*NJiATabs1ootVQ;kyglqI zCUJ)LHfBhE9I-nkIf$$5K&XK_+a4Y?)t_{c>~iOeRnYsh)!f-qIiCY5Agc(Vv%BF3 zsIu-z5H&U&8KHeXvW52L$e||nGv#VbG5VStbg!Sff-ByJ%uX3QeVCo7)UspeGR4u{ z1$f%rkL;NdXDVY7Q1Q@)X&6H3{zT zUMD#196aHj&#Bl$k}}APv)*V&TgnCCY9;MrJ4eX^P}y{JpMIG;c&n9NDYh8htFO5K zMQ)CzZkg2}x2ZuKFBNj-W5sH%RIWn2Wrf`^gE+_L%%S8GeM0MXisS3AvHG7un!-o( zg_*HVtg(}^S^B(s?4{}jEv{tzd}<5vfUXBXR#Ms#?XZ@yKg91LezS{-t+J#{+jqA0 zDw8ub1`kz2cp~VNpiT4=$Ge-zq&N*u3#}rwS)siUT3u)xsB@>v2|;IwsNNVAoD$+g qLAIc`f_@1K({P+-b_hBsC@pA6&`tYI$AE-u%-dDKb^B7+HR%sM?2C>7 diff --git a/build/test/out/test_quizduell.out b/build/test/out/test_quizduell.out index e00491bb32f2ef5d960cd079bfadf225b61b9cc6..057d583984175b96693715b8fd65187622dadfcc 100644 GIT binary patch delta 693 zcmYjPTS!zv82-OG=d8y)N6l8*EqW1+L%z2OkC0>ud;=XgDC7aB{#;|ukNW2B9sq>K@dR>(qX)jUOo*R&eByP*Ob5`Il9VKhHYD&4e4hG z8Y8De{e-D}c@2Vn(RlD&SDL)*KC19qh9bP+CmFo@BSl!kbdO(PD6IJ;QBPl_GZvzU zxw2hJKDbEQ$1v5(pohekOLV;4C}ozc6;Ka|(!*af_`NM6n0iZ)i85KTB#|NIJl?(n zAFov4GP(4~@X_rpyj8(2b6NY>%>@%v2Mwf`6Lq@4CD|06fc-JMZ%Bb)*y7qhF;x{*=&}QX0UVs(5 zwHoE(8@Tn$_FxSzsk8Oy*sJ{#Ik)g!3;BE`j)3-A%sGqK^&#J0jboHykq;!$DMBqL du*riqu2?vN1-r?@7%;>auM5?0H;iMl>n~H3tV#d? delta 711 zcmYk3T}V_x6vxkh?!D`}ch^lGV*z&52+h+UG+CqqE zVEEE<(@A=Zd?+NapbHg&R3`Qy_D~RJJ|q;q$o3HQV9mG^9hhOx`TyqdpEC;s_Jsla zts%6hZ?>{iwUeJl88q{X(u%~BDMfpODf8`24VukgGc_#S#8*-%G<($7k7qyc#ge(W znt{`t|I@bB@so%YRSQMp zRMJO*Go^a$VldJ{Il0U&t0Pj*6?F62aN!1i$bZ6}yq-zg679G&ePjq2BV@;J0C(cR4W*pOxoA zCQp2|_vvOl&+)lQ-)0YZ#QdvKU#!^u`hKlWuPP3B4irO_onBfi>UDa+!|#@%#A1~= z>BX{j+K)6~V2hp!utBnZPYF~xb?L6N^5g$yVP5UlJ>f((F6j>`t3^7dcYbkUK gU&|?M*@R}Um^gxYtHs1H5au6m3)N>G8o^ljFF9YV{r~^~ diff --git a/build/test/results/test_casualQuiz.pass b/build/test/results/test_casualQuiz.pass index f60eb2d..8cbf9ab 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.025510799983749166 +:time: 0.01942100000451319 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass index 4428cd2..9aee039 100644 --- a/build/test/results/test_quizduell.pass +++ b/build/test/results/test_quizduell.pass @@ -51,4 +51,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.045171999983722344 +:time: 0.02023269998608157 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index 103c5e2..d0fbaa1 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.02026409999234602 +:time: 0.018594499997561797 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index 937bea4..b95728e 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.020749499992234632 +:time: 0.018404699978418648 diff --git a/src/quizduell.c b/src/quizduell.c index c0cc856..c8e6863 100644 --- a/src/quizduell.c +++ b/src/quizduell.c @@ -94,7 +94,7 @@ int spieleKategorie(Kategorie* kategorie) { } printf("Your answer: "); - scanf("%s", benutzerAntwort); + scanf("%9s", benutzerAntwort); benutzerAntwort[0] = toupper(benutzerAntwort[0]); getchar();