blob: 7ece9ab0f2e5b133949b838b3d080674f18d1cb7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2018, Linaro Limited
*/
#include <ctype.h>
int __builtin_isxdigit(int c)
{
if (isdigit(c))
return 1;
if (c >= 'A' && c <= 'F')
return 1;
if (c >= 'a' && c <= 'f')
return 1;
return 0;
}
|