xref: /optee_os/lib/libutils/isoc/toupper.c (revision 64718c9361636e9750c29da790ddb3a8bfa55f6d)
1 // SPDX-License-Identifier: BSD-2-Clause
2 /*
3  * Copyright (c) 2019, KAIST
4  */
5 #include <ctype.h>
6 
7 int __builtin_toupper(int c)
8 {
9 	if (c >= 'a' && c <= 'z')
10 		return c - 'a' + 'A';
11 	return c;
12 }
13