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

Function parse_num_flows

dpdk/examples/server_node_efd/efd_server/args.c:100–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100static int
101parse_num_flows(const char *flows)
102{
103 char *end = NULL;
104
105 /* parse hexadecimal string */
106 num_flows = strtoul(flows, &end, 16);
107 if ((flows[0] == '\0') || (end == NULL) || (*end != '\0'))
108 return -1;
109
110 if (num_flows == 0)
111 return -1;
112
113 return 0;
114}
115
116/**
117 * The application specific arguments follow the DPDK-specific

Callers 1

parse_app_argsFunction · 0.85

Calls 1

strtoulFunction · 0.85

Tested by

no test coverage detected