45 |
|
exit(1); |
46 |
|
} |
47 |
|
/* copy header */ |
48 |
< |
while (fgets(buf, sizeof(buf), fin) != NULL && buf[0] != '\n') |
49 |
< |
fputs(buf, stdout); |
48 |
> |
copyheader(fin, stdout); |
49 |
|
/* add new header info. */ |
50 |
|
printf("%s\n\n", progname); |
51 |
|
/* get picture size */ |
85 |
|
exit(1); |
86 |
|
} |
87 |
|
for (inx = 0; inx < nrows && xoff+inx < xres; inx++) |
88 |
< |
bcopy(inline[xoff+inx], scanbar[inx*yres+iny], |
88 |
> |
bcopy((char *)inline[xoff+inx], |
89 |
> |
(char *)scanbar[inx*yres+iny], |
90 |
|
sizeof(COLR)); |
91 |
|
} |
92 |
|
for (inx = 0; inx < nrows && xoff+inx < xres; inx++) |