int main (int argc, char *argv[]) { register int i; parse_program_arguments (argc, argv); process_description_file (description_filename); /* Now process the files. */ for (i = 0; i < files_index; i++) process_datafile (files[i]); return (0); }
/* * Main function, the entry point of program. */ int main(int argc, char *argv[]) { int i = 0; int arg_data_index = 0; struct cmdline_opt options; sbMatch_t *pMatch = NULL; /* process the command line arguments */ arg_data_index = parse_args(argc, argv, &options); /* process the commands */ for (i = arg_data_index; i < argc; i++) { process_datafile(argv[i], &pMatch, &options); } return EXIT_SUCCESS; } /* end of main() */
int main(int argc, char **argv) { int i = 0; int arg_data_index = 0; struct cmdline_opt options; set_t *set; arg_data_index = parse_args(argc, argv, &options); set = set_create(); for (i = arg_data_index; i < argc; i++) { process_datafile(argv[i], set, &options); } set_destroy(set); return EXIT_SUCCESS; }