diff options
Diffstat (limited to '3')
| -rw-r--r-- | 3/part1.c | 2 | ||||
| -rw-r--r-- | 3/part2.c | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -26,6 +26,8 @@ int count_trees(const char * filename) pos = (pos + INC_RIGHT) % width; } + fclose(file); + return hit; } @@ -29,6 +29,8 @@ int count_trees(int inc_right, int inc_down, const char * filename) pos = (pos + inc_right) % width; } + fclose(file); + return hit; } |
