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

Function parse_arg

tests/rotctl_parse.c:374–387  ·  view source on GitHub ↗

* TODO: use Lex? */

Source from the content-addressed store, hash-verified

372 * TODO: use Lex?
373 */
374static char parse_arg(const char *arg)
375{
376 int i;
377
378 for (i = 0; test_list[i].cmd != 0; i++)
379 {
380 if (!strncmp(arg, test_list[i].name, MAXNAMSIZ))
381 {
382 return test_list[i].cmd;
383 }
384 }
385
386 return 0;
387}
388
389
390/*

Callers 1

rotctl_parseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected