MCPcopy Create free account
hub / github.com/F-Stack/f-stack / is_str_num

Function is_str_num

dpdk/examples/ipsec-secgw/parser.h:38–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 tokens[index], ref)
37
38static inline int
39is_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, \

Callers 2

parse_ipv4_addrFunction · 0.85
parse_ipv6_addrFunction · 0.85

Calls 1

isdigitFunction · 0.85

Tested by

no test coverage detected