From 16b99e9837c27652b91c8c6d97012fa943c5fbe7 Mon Sep 17 00:00:00 2001 From: kirreen Date: Sun, 3 Dec 2023 17:34:24 +0100 Subject: [PATCH] was cleaning up my code before uploading it and didnt test it oops --- day2/day2b | Bin 15896 -> 15896 bytes day2/day2b.c | 1 + 2 files changed, 1 insertion(+) diff --git a/day2/day2b b/day2/day2b index 5edef932af9579c3c3b9ec5b4a0763806fd79ffb..bba0ef62f41b034c93d4f23a9feebda76f0935d2 100755 GIT binary patch delta 323 zcmbPHGoxk$2P0=M8v_{hZWd%LXA=3D^6XUn=^DPXJ#*Cm1V7=dEcl?lc@FazKE{s8 z6NS!9&K8zt+%macSe0?ze2l!ha5(qN)Kjv4r(S)MQ4nZbpX9-D0JjlMgWQOj6jxm@;{< zLcU@!3s8k4pFkUvGcTJ*Gc&Ur3lBR71A`1uxB-YaZ1z>$&BNHRnNu&Gndy({;$cE+=lEv@u98^nOBfuLb?q1AF`088?8#{d8T delta 332 zcmbPHGoxk$2P5Z9HU==5xml30oJl0-y0hZeU#APYa)Kx3>D*mm_QUP&<~ht?_!y^6 zo+xyN&!e~1;s5{t9-XZXfB*lV94jo%xNLHzuqxw%$@7I38P82VC|u6CZ?dI`JL9^^ zjUrt}+T08b9-YT`fGm08_8X|Rduj(zE7YKU3xMK4`4`q8sn!Ght!|TTMT?!+aUp42 z`0M}w?$!*TuFhi~y{wCo6#xJL diff --git a/day2/day2b.c b/day2/day2b.c index e6ad277..2c043cc 100644 --- a/day2/day2b.c +++ b/day2/day2b.c @@ -42,6 +42,7 @@ int main () // not neccesary to decide length when we know amount of ';'? // length = strchr(row, '\n') - &row[0]; // change each ; to \0 + ptr = row; while(ptr = strchr(ptr, ';')) { ptr[0] = '\0'; gameHands++;