Sign in
coral
/
optee-os-mtk
/
2338a97153efe0007bd01237d8e485c2a70964ca
/
.
/
lib
/
libutils
/
isoc
/
isxdigit.c
blob: d121d41b3dd5a4b3a0b1f7a1706a577e4467dce6 [
file
] [
log
] [
blame
]
// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2018, Linaro Limited
*/
#include
<ctype.h>
int
isxdigit
(
int
c
)
{
if
(
isdigit
(
c
))
return
1
;
if
(
c
>=
'A'
&&
c
<=
'F'
)
return
1
;
if
(
c
>=
'a'
&&
c
<=
'f'
)
return
1
;
return
0
;
}