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

Function usage_rot

tests/rotctl_parse.c:1532–1576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1530
1531
1532void usage_rot(FILE *fout)
1533{
1534 int i;
1535
1536 fprintf(fout, "Commands (some may not be available for this rotator):\n");
1537
1538 for (i = 0; test_list[i].cmd != 0; i++)
1539 {
1540 fprintf(fout,
1541 "%c: %-12s(",
1542 isprint(test_list[i].cmd) ? test_list[i].cmd : '?',
1543 test_list[i].name);
1544
1545 if (test_list[i].arg1 && (test_list[i].flags & ARG_IN1))
1546 {
1547 fprintf(fout, "%s", test_list[i].arg1);
1548 }
1549
1550 if (test_list[i].arg2 && (test_list[i].flags & ARG_IN2))
1551 {
1552 fprintf(fout, ", %s", test_list[i].arg2);
1553 }
1554
1555 if (test_list[i].arg3 && (test_list[i].flags & ARG_IN3))
1556 {
1557 fprintf(fout, ", %s", test_list[i].arg3);
1558 }
1559
1560 if (test_list[i].arg4 && (test_list[i].flags & ARG_IN4))
1561 {
1562 fprintf(fout, ", %s", test_list[i].arg4);
1563 }
1564
1565 fprintf(fout, ")\n");
1566 }
1567
1568 fprintf(fout,
1569 "\n\nIn interactive mode prefix long command names with '\\', e.g. '\\dump_state'\n\n"
1570 "The special command '-' is used to read further commands from standard input\n"
1571 "Commands and arguments read from standard input must be white space separated,\n"
1572 "comments are allowed, comments start with the # character and continue to the\n"
1573 "end of the line.\n");
1574
1575 fprintf(fout, "\nReport bugs to <hamlib-developer@lists.sourceforge.net>.\n");
1576}
1577
1578
1579int print_conf_list(const struct confparams *cfp, rig_ptr_t data)

Callers 3

usageFunction · 0.85
rotctl_parseFunction · 0.85
usageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected