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

Function lsi_parse_portmask

dpdk/examples/link_status_interrupt/main.c:311–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309}
310
311static int
312lsi_parse_portmask(const char *portmask)
313{
314 char *end = NULL;
315 unsigned long pm;
316
317 /* parse hexadecimal string */
318 pm = strtoul(portmask, &end, 16);
319 if ((portmask[0] == '\0') || (end == NULL) || (*end != '\0'))
320 return 0;
321
322 return pm;
323}
324
325static unsigned int
326lsi_parse_nqueue(const char *q_arg)

Callers 1

lsi_parse_argsFunction · 0.85

Calls 1

strtoulFunction · 0.85

Tested by

no test coverage detected