Lines Matching refs:commands
87 cmd_table commands[] = {
219 for (i = 0; commands[i].cmd != NULL; i++)
220 if (strncmp(commands[i].cmd, argv[0],
221 strlen(commands[i].cmd)) == 0)
224 if (commands[i].cmd == NULL) {
230 if (commands[i].nargs != argc - 1) {
231 (void)fprintf(stderr, "usage: %s\n", commands[i].usage);
235 if (recno && commands[i].rconv) {
241 (*commands[i].func)(db, argv);
436 for (i = 0; commands[i].cmd; i++)
437 if (commands[i].descrip)
439 commands[i].usage, commands[i].descrip);