FreeCalypso > hg > freecalypso-sw
diff 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 |
line wrap: on
line diff
--- a/ffstools/tiffs-rd/main.c Mon Jan 27 03:05:56 2014 +0000 +++ b/ffstools/tiffs-rd/main.c Mon Jan 27 03:46:11 2014 +0000 @@ -84,11 +84,14 @@ char *cmd; struct cmdtab *tp; - while ((c = getopt(argc, argv, "+a:r:v")) != EOF) + while ((c = getopt(argc, argv, "+a:o:r:v")) != EOF) switch (c) { case 'a': index_blk_num = atoi(optarg); continue; + case 'o': + imgfile_offset = strtoul(optarg, 0, 0); + continue; case 'r': root_inode = strtoul(optarg, 0, 16); continue;