5 |
|
* flip picture file horizontally and/or vertically |
6 |
|
*/ |
7 |
|
|
8 |
< |
#include <stdio.h> |
9 |
< |
#include <time.h> |
10 |
< |
#include <string.h> |
11 |
< |
|
8 |
> |
#include "rtio.h" |
9 |
> |
#include "paths.h" |
10 |
|
#include "platform.h" |
11 |
|
#include "color.h" |
12 |
|
#include "resolu.h" |
22 |
|
|
23 |
|
FILE *fin; /* input file */ |
24 |
|
|
27 |
– |
char *progname; |
25 |
|
|
29 |
– |
|
26 |
|
static void memerr(void); |
27 |
|
static void scanfile(void); |
28 |
|
static void flip(void); |
53 |
|
{ |
54 |
|
static char picfmt[MAXFMTLEN] = PICFMT; |
55 |
|
int i, rval; |
56 |
+ |
|
57 |
|
SET_DEFAULT_BINARY(); |
58 |
|
SET_FILE_BINARY(stdout); |
59 |
< |
progname = argv[0]; |
59 |
> |
fixargv0(argv[0]); |
60 |
|
|
61 |
|
for (i = 1; i < argc; i++) |
62 |
|
if (!strcmp(argv[i], "-h")) |