xref: /optee_os/lib/libutils/isoc/ispunct.c (revision 95bec10a7d4de4bf8d7cb6c535b80ec76f2b3c94)
1 // SPDX-License-Identifier: BSD-2-Clause
2 /*
3  * Copyright (c) 2019, KAIST
4  */
5 #include <ctype.h>
6 
7 int ispunct(int c)
8 {
9     return isgraph(c) && !isalnum(c);
10 }
11