| 36 | tokens[index], ref) |
| 37 | |
| 38 | static inline int |
| 39 | is_str_num(const char *str) |
| 40 | { |
| 41 | uint32_t i; |
| 42 | |
| 43 | for (i = 0; i < strlen(str); i++) |
| 44 | if (!isdigit(str[i])) |
| 45 | return -1; |
| 46 | |
| 47 | return 0; |
| 48 | } |
| 49 | |
| 50 | #define APP_CHECK_TOKEN_IS_NUM(tokens, index, status) \ |
| 51 | APP_CHECK(is_str_num(tokens[index]) == 0, status, \ |
no test coverage detected