summaryrefslogtreecommitdiff
path: root/5/part2_fast.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 /5/part2_fast.c
parent4f3827b3165ec19abcd9e5a5892cf00c0db893ed (diff)
Remove shell overhead for benchmarking
Diffstat (limited to '5/part2_fast.c')
-rw-r--r--5/part2_fast.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/5/part2_fast.c b/5/part2_fast.c
index 330244e..df2a585 100644
--- a/5/part2_fast.c
+++ b/5/part2_fast.c
@@ -77,9 +77,11 @@ int missing_seat_id(const char *filename)
return i;
}
}
+
+ return 0;
}
int main(int argc, char *argv[])
{
- printf("%i", missing_seat_id(argv[1]));
+ printf("%i", missing_seat_id(argv[argc - 1]));
}