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