clock_t time_start_read, time_end_read;
clock_t time_start_encode, time_end_encode;
time_start_read = clock();
clock_t time_start_read, time_end_read;
clock_t time_start_encode, time_end_encode;
time_start_read = clock();
- //struct sokoban_screen *screen = parse_screen(inputstream);
- parse_screen(inputstream);
+ sokoban_screen *screen = parse_screen(inputstream);
+ if (screen == NULL) printf("Something went wrong...\n");
+ sokoban_print(screen);
+ //parse_screen(inputstream);
// Future: SMC
fprintf(stderr, "Reading: %fs\n",
((double) (time_end_read-time_start_read))/CLOCKS_PER_SEC);
// Future: SMC
fprintf(stderr, "Reading: %fs\n",
((double) (time_end_read-time_start_read))/CLOCKS_PER_SEC);
for(int filepathindex = optind; filepathindex < argc; filepathindex++){
char *currentfilepath = argv[filepathindex];
fprintf(stderr, "Processing: %s\n", currentfilepath);
for(int filepathindex = optind; filepathindex < argc; filepathindex++){
char *currentfilepath = argv[filepathindex];
fprintf(stderr, "Processing: %s\n", currentfilepath);
FILE *currentfile = fopen(currentfilepath, "r");
if(DEBUG) fprintf(stderr, "Opening file\n");
solve(currentfile);
FILE *currentfile = fopen(currentfilepath, "r");
if(DEBUG) fprintf(stderr, "Opening file\n");
solve(currentfile);