使用C语言把字母转换成大写,不能使用库函数

char to_upper(char input) {
  if ('a' <= input && input <= 'z') {
    return input - 'a' 'A';
  }
  return input;
}
原文地址:https://www.cnblogs.com/weiboyuan/p/4654408.html