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;
}