#include #include #include #define HIST_SIZE (10) #define NUM_FILES (5) int main(int argc, char **argv){ int ii; int jj; int val; char filename[100]; char histfilename[100]; FILE *fp; int hist_size; int num_files; long hist[65536]; /* allocate for the max */ char dirname[100]; if (argc == 4) { hist_size = atoi(argv[1]); num_files = atoi(argv[2]); strcpy(dirname, argv[3]); } else { printf("%s usage: [histogram size] [number of files] [dirname]\n", argv[0]); exit(1); } /* THIS NEEDS TO BE IN A LOOP FOR DIR = zero, one, two, three */ /* Right now need to pass dirname: "zero","one","two","three" in as 3rd arg */ for (ii=0; ii