toupper.c 84 B

12345
  1. #include <ctype.h>
  2. int toupper(int c) {
  3. return islower(c) ? c - 'a' + 'A' : c ;
  4. }