int to_upper_case(char c) { if (c >= 'A' && c <= 'Z') return c; return c - ('a' - 'A'); }