8 |
|
* Skeletal 24-bit image conversion program. Replace "skel" |
9 |
|
* in this file with a more appropriate image type identifier. |
10 |
|
* |
11 |
< |
* The Makefile entry should look something like this: |
11 |
> |
* The Rmakefile entry should look something like this: |
12 |
|
* ra_skel: ra_skel.o |
13 |
|
* cc $(CFLAGS) -o ra_skel ra_skel.o -lrt -lm |
14 |
|
* ra_skel.o: ../common/color.h ../common/resolu.h |
74 |
|
exit(1); |
75 |
|
} |
76 |
|
if (i == argc-2 && freopen(argv[i+1], "w", stdout) == NULL) { |
77 |
< |
fprintf(stderr, "can't open output \"%s\"\n", |
77 |
> |
fprintf(stderr, "%s: can't open output \"%s\"\n", |
78 |
|
progname, argv[i+1]); |
79 |
|
exit(1); |
80 |
|
} |
87 |
|
/* get their image resolution */ |
88 |
|
read_skel_head(&xmax, &ymax); |
89 |
|
/* put our header */ |
90 |
+ |
newheader("RADIANCE", stdout); |
91 |
|
printargs(i, argv, stdout); |
92 |
|
fputformat(COLRFMT, stdout); |
93 |
|
putchar('\n'); |