Is any direct function is available for the complement of the char variable
Are you sure the OP meant complement and not compliment? Complimenting a charcter would change the whole dynamic of the function and might make a lot more sense. For example:
char *GetComplimentOfAChar (char c) { if (c < 0) return ("You look very pretty today."); if (c < 64) return ("My, you're a handsome character."); return ("My, what a big character you are."); }
:-)
Jon