2019 day 4, parts 1 and 2

This commit is contained in:
2022-09-20 19:22:13 +02:00
parent f9a80239b4
commit 2694f8d4d0
4 changed files with 139 additions and 2 deletions

View File

@@ -56,7 +56,8 @@ static struct list_head *parse(struct list_head *wires)
int totdist = 0;
if ((buflen = getline(&buf, &alloc, stdin)) <= 0) {
fprintf(stderr, "error %d reading file.\n", errno);
fprintf(stderr, "error %d reading input.\n", errno);
wires = NULL;
goto end;
}