15 |
|
#include "color.h" |
16 |
|
|
17 |
|
|
18 |
< |
#define MAXFILE 16 |
18 |
> |
#define MAXFILE 32 |
19 |
|
|
20 |
|
/* output picture size */ |
21 |
|
int xsiz = 0; |
123 |
|
} else { |
124 |
|
input[nfile].name = argv[an]; |
125 |
|
if ((input[nfile].fp = fopen(argv[an], "r")) == NULL) { |
126 |
< |
fprintf(stderr, "%s: cannot open\n", argv[an]); |
126 |
> |
perror(argv[an]); |
127 |
|
quit(1); |
128 |
|
} |
129 |
|
} |
217 |
|
if (y >= ysiz) |
218 |
|
continue; |
219 |
|
if (fwritecolrs(scanout, xsiz, stdout) < 0) { |
220 |
< |
fprintf(stderr, "%s: write error\n", progname); |
220 |
> |
perror(progname); |
221 |
|
quit(1); |
222 |
|
} |
223 |
|
} |
224 |
|
return; |
225 |
|
memerr: |
226 |
< |
fprintf(stderr, "%s: out of memory\n", progname); |
226 |
> |
perror(progname); |
227 |
|
quit(1); |
228 |
|
} |
229 |
|
|