I was wondering how to fix this printf statement to not print the character outside the brackets;
printf("[ %c ]\n", display(Room1,5,5));
So as you can see i want to the returned character to be where the %c, the function that i am calling code is; (this code has been editted from suggestions)
if(Room1[i][j] == blue){
return COLOR_blue "." COLOR_RESET;
}
return " ";
}
so if it is equal to blue it will print a blue '.' otherwise it will just create a space, however it is just printing to console as;
.[
]
- with the dont being blue, not sure why it does this as i want it inside the brackets