FreeCalypso > hg > freecalypso-reveng
view pirollback/analyze.c @ 43:9f4469766c74
pirollback: tree walk implemented
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sat, 06 Jul 2013 20:52:09 +0000 |
parents | 15c2ac2c5c73 |
children | 074237879eca |
line wrap: on
line source
#include <stdio.h> #include <stdlib.h> extern char *imgfile; extern int last_inode; main(argc, argv) char **argv; { if (argc != 2) { fprintf(stderr, "usage: %s ffs-image\n", argv[0]); exit(1); } imgfile = argv[1]; read_img_file(); read_inodes(); printf("Last inode is #%x\n", last_inode); walk_tree(); printf("Tree walk succeeded\n"); exit(0); }