1
0

toupper.c 203 B

123456789101112131415
  1. #include <ctype.h>
  2. #include "libc.h"
  3. int toupper(int c)
  4. {
  5. if (islower(c)) return c & 0x5f;
  6. return c;
  7. }
  8. int __toupper_l(int c, locale_t l)
  9. {
  10. return toupper(c);
  11. }
  12. weak_alias(__toupper_l, toupper_l);