Lines Matching refs:argc
25 static int cmd_help(int argc, const char **argv);
106 static int cmd_help(int argc, const char **argv) in cmd_help() argument
108 if (argc > 1) { in cmd_help()
123 static void handle_options(int *argc, const char ***argv) in handle_options() argument
127 if (*argc < 1) in handle_options()
130 for (x = 0; x < *argc && ((*argv)[x])[0] == '-'; x++) { in handle_options()
136 if (*argc < 2) { in handle_options()
171 *argc -= new_argc; in handle_options()
175 int main(int argc, const char *argv[]) in main() argument
187 argc--; in main()
190 handle_options(&argc, &argv); in main()
194 if (argc < 1) { in main()
203 if (argc > 1 && !strcmp(argv[1], "--help")) { in main()
235 ret = p->main(argc, argv); in main()