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

Function find_cmd_entry

tests/ampctl_parse.c:188–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186
187
188struct test_table *find_cmd_entry(int cmd)
189{
190 int i;
191
192 for (i = 0; test_list[i].cmd != 0; i++)
193 if (test_list[i].cmd == cmd)
194 {
195 break;
196 }
197
198 if (test_list[i].cmd == 0x00)
199 {
200 return NULL;
201 }
202
203 return &test_list[i];
204}
205
206
207/* Structure for hash table provided by uthash.h

Callers 1

ampctl_parseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected