comparison ffstools/tiffs-rd/main.c @ 996:09b8b2327838

tiffs in vitro reader: implemented support for old 16-bit location field (-O)
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Sun, 03 Jan 2016 04:23:29 +0000
parents 10afa4d39a7b
children
comparison
equal deleted inserted replaced
995:c22afeecbf34 996:09b8b2327838
83 extern char *optarg; 83 extern char *optarg;
84 int c; 84 int c;
85 char *cmd; 85 char *cmd;
86 struct cmdtab *tp; 86 struct cmdtab *tp;
87 87
88 while ((c = getopt(argc, argv, "+a:o:r:v")) != EOF) 88 while ((c = getopt(argc, argv, "+a:o:Or:v")) != EOF)
89 switch (c) { 89 switch (c) {
90 case 'a': 90 case 'a':
91 index_blk_num = atoi(optarg); 91 index_blk_num = atoi(optarg);
92 continue; 92 continue;
93 case 'o': 93 case 'o':
94 imgfile_offset = strtoul(optarg, 0, 0); 94 imgfile_offset = strtoul(optarg, 0, 0);
95 continue;
96 case 'O':
97 old_16bit_location = 1;
95 continue; 98 continue;
96 case 'r': 99 case 'r':
97 root_inode = strtoul(optarg, 0, 16); 100 root_inode = strtoul(optarg, 0, 16);
98 continue; 101 continue;
99 case 'v': 102 case 'v':