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