Commit 9a7be053 authored by Zara Saldanha's avatar Zara Saldanha

Update traverse.c

parent 97d5a621
......@@ -118,14 +118,15 @@ void process(char *root)
} // while
}
}
newest = "file_stat.c"
avg = (float)sum /(float)numOfFiles;
printf(" a total of %d files were counted\n",numOfFiles);
printf(" a total of %d directories were counted\n",num_dir);
printf(" the max file size is %d bytes\n",(int)max);
printf(" the min file size is %d bytes\n",(int)min);
printf(" the average file size is %f bytes\n",avg);
printf(" the file size that was most recently modified: %s\n",newest);
printf(" the file that was least recently modified is %s\n",oldest);
printf(" the file size that was most recently modified: %s\n", newest);
printf(" the file that was least recently modified is: %s\n",oldest);
}
// initialize queue data structure
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment