Passing char to a function

Either that or a small but complete sketch that illustrates the problem. Auto format it in the IDE, right click and select Copy for forum, post it here and the code tags will have been added automatically