aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Liodden <eriklio@stud.ntnu.no>2017-07-08 15:24:22 +0200
committerErik Liodden <eriklio@stud.ntnu.no>2017-07-08 15:27:16 +0200
commit2f84bdcb0ab50c3920d744ed87eda56f5072ba91 (patch)
treeea02d45cc40d0435a11215305b1fe0f3d8c731b9
parent632dcee777c146d8f41d26085b3e20ed6c50c2f7 (diff)
downloadc-project-template-master.tar.gz
Include arguments in main()HEADmaster
main() usually accepts arguments, so it is probably a good idea to include the possibility right from the start.
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 6abd819..f9fd9ed 100644
--- a/src/main.c
+++ b/src/main.c
@@ -8,7 +8,7 @@
#include <stdio.h>
#include "implementation.h"
-int main(void)
+int main(int argc, char *argv[])
{
printf("sum: 5 + 2 = %d\n", sum(5, 2));
return 0;