mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 12:49:08 +00:00
17 lines
230 B
C++
17 lines
230 B
C++
#include <ctype.h>
|
|
#include <string.h>
|
|
|
|
int __tolower(int c)
|
|
{
|
|
if (c >= 'A' && c <= 'Z')
|
|
return c | 0x20;
|
|
return c;
|
|
}
|
|
|
|
int __toupper(int c)
|
|
{
|
|
if (c >= 'a' && c <= 'z')
|
|
return c & ~0x20;
|
|
return c;
|
|
}
|