From b6cc7951c7b66bc2959721c362c2d309d86f3353 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 16 Oct 2017 19:45:24 +0530 Subject: [PATCH] corrected level showing if not entered --- main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 561a650..936b111 100644 --- a/main.c +++ b/main.c @@ -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;