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

Function bbdev_parse_number

dpdk/examples/bbdev_app/main.c:198–210  ·  view source on GitHub ↗

parse core mask */

Source from the content-addressed store, hash-verified

196
197/* parse core mask */
198static inline
199uint16_t bbdev_parse_number(const char *mask)
200{
201 char *end = NULL;
202 unsigned long pm;
203
204 /* parse hexadecimal string */
205 pm = strtoul(mask, &end, 10);
206 if ((mask[0] == '\0') || (end == NULL) || (*end != '\0'))
207 return 0;
208
209 return pm;
210}
211
212static int
213bbdev_parse_args(int argc, char **argv,

Callers 1

bbdev_parse_argsFunction · 0.85

Calls 1

strtoulFunction · 0.85

Tested by

no test coverage detected