Home | History | Annotate | Download | only in examples

Lines Matching refs:commands

48 /* A structure which contains information on the commands this program
57 COMMAND commands[] = {
187 for (i = 0; commands[i].name; i++)
188 if (strcmp (name, commands[i].name) == 0)
189 return (&commands[i]);
282 while ((name = commands[list_index].name))
296 /* FileMan Commands */
301 commands. */
383 /* Print out help for ARG, or for all of the commands if ARG is
391 for (i = 0; commands[i].name; i++)
393 if (!*arg || (strcmp (arg, commands[i].name) == 0))
395 printf ("%s\t\t%s.\n", commands[i].name, commands[i].doc);
402 printf ("No commands match `%s'. Possibilties are:\n", arg);
404 for (i = 0; commands[i].name; i++)
413 printf ("%s\t", commands[i].name);