aboutsummaryrefslogtreecommitdiff
path: root/lib/libutils/isoc/isgraph.c
blob: 49af28d8ecc82f31b916a3a8ec82db751b1c0b20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// SPDX-License-Identifier: BSD-2-Clause
/*
 * Copyright (c) 2019, KAIST
 */
#include <ctype.h>

int __builtin_isgraph(int c)
{
	if (c >= 0x21 && c < 0x7f)
		return 1;
	return 0;
}