10 unsigned char apptype
= 0;
11 unsigned char force
= 0;
12 unsigned char inffiles
= 0;
13 unsigned char listing
= 0;
14 unsigned char testing
= 0;
15 unsigned char quiet
= 1;
16 unsigned char retry
= 0;
17 unsigned char singlecase
= 0;
18 unsigned char stamp
= 1;
19 unsigned char to_stdout
= 0;
20 unsigned char verbose
= 0;
28 fprintf(stderr
, "sqsh: un-squashes RISC OS squashed files\n");
29 fprintf(stderr
, "Usage: sqsh [options] <filename>\n");
30 fprintf(stderr
, " where options are:\n");
31 fprintf(stderr
, " -c output to stdout\n");
32 fprintf(stderr
, " -f force file overwrite\n");
33 fprintf(stderr
, " -s do not set timestamp of decompressed file\n");
38 main(int argc
, char *argv
[])
49 for (i
= 1; i
< argc
; i
++)
51 if (argv
[i
][0] == '-')
79 if (r
!= 0 || writesize
> 0)
81 error("Error unsquashing file");