Skip to content

Commit

Permalink
corrected level showing if not entered
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed Oct 16, 2017
1 parent 7ca8cbd commit b6cc795
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ int main(int argc, char const *argv[]){
return 0;
#endif
//what level you selected
printf("LEVEL = %s \n",argv[1]);
if(argv[1] != '\0'){
printf("LEVEL = %s \n",argv[1]);
}
else{
puts("LEVEL = 4 (default)\n");
}

// Setup intial position
position *current_position;
Expand Down

0 comments on commit b6cc795

Please sign in to comment.