toupper.c 183 B

12345678910111213141516171819
  1. #include <ctype.h>
  2. int
  3. toupper(int c)
  4. {
  5. if(c < 'a' || c > 'z')
  6. return c;
  7. return _toupper(c);
  8. }
  9. int
  10. tolower(int c)
  11. {
  12. if(c < 'A' || c > 'Z')
  13. return c;
  14. return _tolower(c);
  15. }