Add exit() at the end of programm

This commit is contained in:
Yorick Barbanneau 2021-09-17 16:34:51 +02:00
parent 34de202ded
commit 82cf981df2

View file

@ -104,7 +104,7 @@ int main(int argc, char* argv[]) {
case 'c': case 'c':
if ( OPTIONAL_ARGUMENT_IS_PRESENT ) { if ( OPTIONAL_ARGUMENT_IS_PRESENT ) {
if ( access(optarg, F_OK) == 0) { if ( access(optarg, R_OK) == 0) {
printf("Contest file valid\n"); printf("Contest file valid\n");
} }
else { else {
@ -138,4 +138,5 @@ int main(int argc, char* argv[]) {
} }
} }
printf("Hello World!\n"); printf("Hello World!\n");
return exit (EXIT_SUCCESS);
} }