diff --git a/src/utictactoe.c b/src/utictactoe.c index 469f65f..c7e8168 100644 --- a/src/utictactoe.c +++ b/src/utictactoe.c @@ -104,7 +104,7 @@ int main(int argc, char* argv[]) { case 'c': if ( OPTIONAL_ARGUMENT_IS_PRESENT ) { - if ( access(optarg, F_OK) == 0) { + if ( access(optarg, R_OK) == 0) { printf("Contest file valid\n"); } else { @@ -138,4 +138,5 @@ int main(int argc, char* argv[]) { } } printf("Hello World!\n"); + return exit (EXIT_SUCCESS); }