2020/19, add C results for part 1.

This commit is contained in:
2022-10-24 20:37:02 +02:00
parent 23c33894a5
commit d485983efc
2 changed files with 7 additions and 3 deletions

View File

@@ -161,10 +161,10 @@ static long part1()
for (int msg = 0; msg < nmesg; ++msg) {
pos = 0;
if (match(mesg[msg], &pos, 0, 0)) {
printf("%s: ok\n", mesg[msg]);
log(2, "%s: ok\n", mesg[msg]);
ok++;
} else {
printf("%s: NOK\n", mesg[msg]);
log(2, "%s: ok\n", mesg[msg]);
}
}
return ok;
@@ -219,6 +219,6 @@ int main(ac, av)
parse();
printf("%s : res=%ld\n", *av, part == 1? part1(): part2());
printall();
// printall();
exit (0);
}