blob: 2ed083d4be99c24797991da052dc37c7f45e124d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2019, KAIST
*/
#include <ctype.h>
int __builtin_toupper(int c)
{
if (c >= 'a' && c <= 'z')
return c - 'a' + 'A';
return c;
}
|