Searched refs:argc_iter (Results 1 – 1 of 1) sorted by relevance
/external/syslinux/com32/hdt/ |
D | hdt-cli.c | 328 int argc_iter = 0, args_pos = 0, token_found = 0, token_len = 0; in parse_command_line() local 393 dprintf("CLI DEBUG parse: argv[%d] = %s\n", argc_iter, pch); in parse_command_line() 394 argv[argc_iter] = malloc(strlen(pch) * sizeof(char)); in parse_command_line() 395 strlcpy(argv[argc_iter], pch, strlen(pch)); in parse_command_line() 396 argc_iter++; in parse_command_line() 653 for (int argc_iter=0; argc_iter<argc; argc_iter++) { in exec_command() local 654 dprintf("CLI_DEBUG exec rework : copy %d to %d (%s)\n",argc_iter,argc_iter+1,argv[argc_iter]); in exec_command() 655 new_argv[argc_iter+1] = malloc(strlen(argv[argc_iter])); in exec_command() 656 strlcpy(new_argv[argc_iter+1], argv[argc_iter], strlen(argv[argc_iter])); in exec_command() 657 free(argv[argc_iter]); in exec_command()
|