"\n"
"Positional arguments:\n"
"\tFILE zero or one sokoban screens\n"
- "\t when no file is specified stdin will be used\n", prg);
+ "\t when no file is specified stdin will be used\n", prg);
}
BDD subsolve(trans_t *t, BDD new){
} else {
DPRINT("Processing: %s\n", argv[optind]);
FILE *currentfile = fopen(argv[optind], "r");
+ if(currentfile == NULL){
+ printf("File could not be opened\n");
+ return 2;
+ }
DPRINT("Opening file\n");
return solve(currentfile, lurd);
DPRINT("Closing file\n");