xref: /optee_os/lib/libutils/isoc/iscntrl.c (revision 9f34db38245c9b3a4e6e7e63eb78a75e23ab2da3)
1 // SPDX-License-Identifier: BSD-2-Clause
2 /*
3  * Copyright (c) 2019, KAIST
4  */
5 #include <ctype.h>
6 
7 int iscntrl(int c)
8 {
9 	if (c < 0x20 || c == 0x7f)
10 		return 1;
11 	return 0;
12 }
13