Im new to C programming, so bear with me. I've created a couple of functions, but have never used one of the void type.
Eventually I will have it draw a rectangle that displays 1 character across for every unit of width, and the same for the height, but first I just want to get the syntax correct just to make it print one character. Basically I just want to know how the void function works and understand how to use it.
These are all in the correct places in the code, because my other functions are working properly. When I compile, I keep getting this error 'printf' : actual parameter has type 'void' : parameter 2.
void drawRect (int width, char character); /*prototype*/
printf ("%c\n", drawRect (width, character) ); /*function call*/
void drawRect (int width, char character) /*function*/
if (width > 0)