Well, this is embarrassing.
You made a typo. The function is called "cointToss", but you are calling "coinToss" (see the extra t?).
C implicitly added a function declaration for you. Turn on warning, and you'll see.
Fix your typo, and the world will go round again.