MCPcopy Create free account
hub / github.com/Hamlib/Hamlib / parse_arg

Function parse_arg

tests/ampctl_parse.c:313–326  ·  view source on GitHub ↗

* TODO: use Lex? */

Source from the content-addressed store, hash-verified

311 * TODO: use Lex?
312 */
313char parse_arg(const char *arg)
314{
315 int i;
316
317 for (i = 0; test_list[i].cmd != 0; i++)
318 {
319 if (!strncmp(arg, test_list[i].name, MAXNAMSIZ))
320 {
321 return test_list[i].cmd;
322 }
323 }
324
325 return 0;
326}
327
328
329/*

Callers 1

ampctl_parseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected