summaryrefslogtreecommitdiff
path: root/1
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2020-12-03 17:11:01 +0100
committerBond_009 <bond.009@outlook.com>2020-12-03 17:11:01 +0100
commit3da231113ccdd1b777028a4990dd035d07facdd5 (patch)
tree1d40c291bfbb7ce493302b251c829777d69b2328 /1
parent1b5677661fd8bd513d6f81ba6e19e1a23498d3cf (diff)
fclose files
Diffstat (limited to '1')
-rw-r--r--1/part1.c2
-rw-r--r--1/part2.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/1/part1.c b/1/part1.c
index 85cbfd7..f4e5d43 100644
--- a/1/part1.c
+++ b/1/part1.c
@@ -29,5 +29,7 @@ int main()
input[i] = atoi(buffer);
}
+ fclose(file);
+
printf("%i", repair(input));
}
diff --git a/1/part2.c b/1/part2.c
index 5842205..3fb06a6 100644
--- a/1/part2.c
+++ b/1/part2.c
@@ -31,5 +31,7 @@ int main()
input[i] = atoi(buffer);
}
+ fclose(file)
+
printf("%i", repair(input));
}