Code:
void drawshape( struct shape *s )
{
    /* your code here... */
}
I did the hard part, I'll leave the easy bits for you.


Quzah.