FreeCalypso > hg > freecalypso-reveng
comparison pirollback/analyze.c @ 42:15c2ac2c5c73
pirollback: started
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sat, 06 Jul 2013 20:16:34 +0000 |
parents | |
children | 9f4469766c74 |
comparison
equal
deleted
inserted
replaced
41:86a494a5f2b0 | 42:15c2ac2c5c73 |
---|---|
1 #include <stdio.h> | |
2 #include <stdlib.h> | |
3 | |
4 extern char *imgfile; | |
5 extern int last_inode; | |
6 | |
7 main(argc, argv) | |
8 char **argv; | |
9 { | |
10 if (argc != 2) { | |
11 fprintf(stderr, "usage: %s ffs-image\n", argv[0]); | |
12 exit(1); | |
13 } | |
14 imgfile = argv[1]; | |
15 read_img_file(); | |
16 read_inodes(); | |
17 printf("Last inode is #%x\n", last_inode); | |
18 exit(0); | |
19 } |