musl-tcc/src/ctype/toupper.c

15 lines
185 B
C
Raw Normal View History

2022-03-20 08:48:53 +00:00
#include <ctype.h>
int toupper(int c)
{
if (islower(c)) return c & 0x5f;
return c;
}
int __toupper_l(int c, locale_t l)
{
return toupper(c);
}
weak_alias(__toupper_l, toupper_l);