Make sure you do not have any implicit parameter declarations. The compiler issues a warning for those, so make sure you do not ignore the warning.
Passing characters around is only possible with proper function prototypes.
So in your sample code, show the complete signatures of the functions.
Daniel