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