aboutsummaryrefslogtreecommitdiff
path: root/lib/libutils/isoc/iscntrl.c
blob: 4e2a5a92b3cbc361dd98bfff9cfb73d83763c474 (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_iscntrl(int c)
{
	if (c < 0x20 || c == 0x7f)
		return 1;
	return 0;
}