int main() { freopen(INPUT, "r", stdin); freopen(OUTPUT, "w", stdout); int dataset_num; scanf("%d", &dataset_num); int i, dataset_size; for (i = 0; i < dataset_num; i++) { scanf("%d", &dataset_size); process_dataset(dataset_size); } exit(0); }
int main( int argc , char * argv[] ) { THD_3dim_dataset * new_dset = NULL; /* output bucket dataset */ /*----- Identify software -----*/ #if 0 printf ("\n\n"); printf ("Program: %s \n", PROGRAM_NAME); printf ("Author: %s \n", PROGRAM_AUTHOR); printf ("Initial Release: %s \n", PROGRAM_INITIAL); printf ("Latest Revision: %s \n", PROGRAM_LATEST); printf ("\n"); #endif PRINT_VERSION("3dFDR") ; AUTHOR(PROGRAM_AUTHOR); mainENTRY("3dFDR main") ; machdep() ; /*----- Initialize program: get all operator inputs; create mask for voxels above mask threshold -----*/ initialize_program (argc, argv); if (FDR_input1D_filename != NULL) { /*----- Process list of p-values -----*/ process_1ddata (); } else { /*----- Process 3d dataset -----*/ new_dset = process_dataset (); /*----- Output the results as a bucket dataset -----*/ output_results (new_dset); } exit(0) ; }