added arguments help

This commit is contained in:
Lorenzo Bianchi 2023-05-14 17:31:00 +02:00
parent 47c0fce20f
commit fd976b20d8
1 changed files with 3 additions and 4 deletions

View File

@ -6,11 +6,10 @@
void check_input(int argc, char *argv[]){
if (argc < 5) {
//TODO: print help
exit(0); //TODO: togliere
printf("\033[92m<Help>\033[39m Arguments:\n1) number of collums\n2) number of rows\n3) player one token\n4) player two token\n");
exit(EXIT_SUCCESS);
} else if (argc > 5) {
//TODO: print error
exit(EXIT_FAILURE);
errExitMsg("To many arguments");
}
int collums = atoi(argv[1]);