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

Function print_model_list

tests/rigctl_parse.c:2137–2167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2135
2136
2137static void print_model_list()
2138{
2139 struct mod_lst *s;
2140
2141 for (s = models; s != NULL; s = (struct mod_lst *)(s->hh.next))
2142 {
2143
2144 printf("%6d %-23s%-24s%-16s%-12s%s\n",
2145 s->id,
2146 s->mfg_name,
2147 s->model_name,
2148 s->version,
2149 s->macro_name,
2150 s->status);
2151
2152 if (strcmp(s->mfg_name, "Misc") == 0
2153 || strcmp(s->mfg_name, "Other") == 0
2154 || strcmp(s->mfg_name, "Dummy") == 0)
2155 {
2156 printf("Do not use %s as mfg_name\n", s->mfg_name);
2157 exit(0);
2158 }
2159
2160 if (strcmp(s->model_name, "Misc") == 0
2161 || strcmp(s->model_name, "Other") == 0)
2162 {
2163 printf("Do not use %s as model_name\n", s->model_name);
2164 exit(0);
2165 }
2166 }
2167}
2168
2169
2170void list_models()

Callers 1

list_modelsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected