/* implementation */ int main(int argc, char ** argv) { if (argc != 2) { fprintf(stderr, "argc %d, expected 2\n", argc); exit(1); } struct fat16_filesystem fs; fat_open_filesystem(&fs, argv[1]); print_boot_sector(&fs); print_root_dir(&fs); putchar('\n'); fat_close_filesystem(&fs); return EXIT_SUCCESS; }
int main(int argc, char *argv[]) { print_boot_sector(read_boot_sector(argv[argc-1])); return 0; }