summaryrefslogtreecommitdiff
path: root/4/part1.c
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2020-12-05 15:20:27 +0100
committerBond_009 <bond.009@outlook.com>2020-12-05 15:20:27 +0100
commit7a28ce25a69d3177879d134b87eeff5f754638b5 (patch)
treec6e7418f2d28607a2caf73a81197470ebcc37e7d /4/part1.c
parent4f3827b3165ec19abcd9e5a5892cf00c0db893ed (diff)
Remove shell overhead for benchmarking
Diffstat (limited to '4/part1.c')
-rw-r--r--4/part1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/4/part1.c b/4/part1.c
index 65c3b99..b4a3b8e 100644
--- a/4/part1.c
+++ b/4/part1.c
@@ -64,5 +64,5 @@ int count_valid_passports(const char *filename)
int main(int argc, char *argv[])
{
- printf("%i", count_valid_passports(argv[1]));
+ printf("%i", count_valid_passports(argv[argc - 1]));
}