diff --git a/day2/day2b b/day2/day2b index 5edef93..bba0ef6 100755 Binary files a/day2/day2b and b/day2/day2b differ 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++;