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

Function xdigit2val

lib/ff_config.c:57–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55};
56
57static int
58xdigit2val(unsigned char c)
59{
60 int val;
61
62 if (isdigit(c))
63 val = c - '0';
64 else if (isupper(c))
65 val = c - 'A' + 10;
66 else
67 val = c - 'a' + 10;
68 return val;
69}
70
71static int
72parse_lcore_mask(struct ff_config *cfg, const char *coremask)

Callers 1

parse_lcore_maskFunction · 0.70

Calls 2

isdigitFunction · 0.85
isupperFunction · 0.85

Tested by

no test coverage detected