FreeCalypso > hg > freecalypso-sw
comparison ffstools/tiffs-rd/main.c @ 243:43642cf7c98c
tiffs: added global option for offset of FFS within the file (new -o)
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Mon, 27 Jan 2014 03:46:11 +0000 |
parents | c95efd27fb2e |
children | 10afa4d39a7b |
comparison
equal
deleted
inserted
replaced
242:924a80747176 | 243:43642cf7c98c |
---|---|
82 extern char *optarg; | 82 extern char *optarg; |
83 int c; | 83 int c; |
84 char *cmd; | 84 char *cmd; |
85 struct cmdtab *tp; | 85 struct cmdtab *tp; |
86 | 86 |
87 while ((c = getopt(argc, argv, "+a:r:v")) != EOF) | 87 while ((c = getopt(argc, argv, "+a:o:r:v")) != EOF) |
88 switch (c) { | 88 switch (c) { |
89 case 'a': | 89 case 'a': |
90 index_blk_num = atoi(optarg); | 90 index_blk_num = atoi(optarg); |
91 continue; | |
92 case 'o': | |
93 imgfile_offset = strtoul(optarg, 0, 0); | |
91 continue; | 94 continue; |
92 case 'r': | 95 case 'r': |
93 root_inode = strtoul(optarg, 0, 16); | 96 root_inode = strtoul(optarg, 0, 16); |
94 continue; | 97 continue; |
95 case 'v': | 98 case 'v': |