Passing char to a function

OK - try to post some code that makes sense - we can't do much with that