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