Sign in
coral
/
optee-os-mtk
/
941dec3a7f6fd8d8645fa0de158e48c2f845bbeb
/
.
/
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
;
}