14 |
|
#include "platform.h" |
15 |
|
#include "resolu.h" |
16 |
|
|
17 |
– |
char *progname; /* global argv[0] */ |
18 |
– |
|
17 |
|
/* Sum together a set of images and write result to fout */ |
18 |
|
static int |
19 |
|
sum_images(const char *fspec, const CMATRIX *cv, FILE *fout) |
178 |
|
CMATRIX *cmtx; /* component vector/matrix result */ |
179 |
|
char fnbuf[256]; |
180 |
|
int a, i; |
181 |
< |
|
182 |
< |
progname = argv[0]; |
181 |
> |
/* set global progname */ |
182 |
> |
fixargv0(argv[0]); |
183 |
|
/* get options */ |
184 |
|
for (a = 1; a < argc && argv[a][0] == '-'; a++) |
185 |
|
switch (argv[a][1]) { |