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

Function find_cmd_entry

tests/rotctl_parse.c:248–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246
247
248static struct test_table *find_cmd_entry(int cmd)
249{
250 int i;
251
252 for (i = 0; test_list[i].cmd != 0x00; i++)
253 if (test_list[i].cmd == cmd)
254 {
255 break;
256 }
257
258 if (test_list[i].cmd == 0x00)
259 {
260 return NULL;
261 }
262
263 return &test_list[i];
264}
265
266
267/* Structure for hash table provided by uthash.h

Callers 1

rotctl_parseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected