예제 #1
0
파일: read_fat.c 프로젝트: pda/cfat16
/* 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;
}
예제 #2
0
파일: main.c 프로젝트: martoo6/tp-so-fuse
int main(int argc, char *argv[])
{
	print_boot_sector(read_boot_sector(argv[argc-1]));

	return 0;
}