Lines Matching defs:argc
69 static int cmd_help(int argc, const cmd_args* argv, uint32_t flags);
70 static int cmd_echo(int argc, const cmd_args* argv, uint32_t flags);
71 static int cmd_test(int argc, const cmd_args* argv, uint32_t flags);
73 static int cmd_history(int argc, const cmd_args* argv, uint32_t flags);
96 static int cmd_history(int argc, const cmd_args* argv, uint32_t flags) {
493 static void convert_args(int argc, cmd_args* argv) {
496 for (i = 0; i < argc; i++) {
556 int argc = tokenize_command(buffer, &continuebuffer, outbuf, outbuflen,
558 if (argc < 0) {
562 } else if (argc == 0) {
566 // dprintf("after tokenize: argc %d\n", argc);
567 // for (int i = 0; i < argc; i++)
571 convert_args(argc, args);
584 lastresult = command->cmd_callback(argc, args, 0);
698 static int cmd_help(int argc, const cmd_args* argv, uint32_t flags) {
718 static int cmd_echo(int argc, const cmd_args* argv, uint32_t flags) {
719 if (argc > 1)
793 int argc;
795 for (argc = 0; argc < MAX_NUM_ARGS; argc++) {
799 args[argc].str = tok;
803 if (argc == 0) {
807 convert_args(argc, args);
815 command->cmd_callback(argc, args, CMD_FLAG_PANIC);
820 static int cmd_test(int argc, const cmd_args* argv, uint32_t flags) {
823 printf("argc %d, argv %p\n", argc, argv);
824 for (i = 0; i < argc; i++)