142 |
|
exit(1); |
143 |
|
} |
144 |
|
for (inx = 0; inx < nrows && xoff+inx < xres; inx++) |
145 |
< |
bcopy((char *)inln[xoff+inx], |
146 |
< |
(char *)scanbar[inx*yres+iny], |
147 |
< |
sizeof(COLR)); |
145 |
> |
copycolr(scanbar[inx*yres+iny], |
146 |
> |
inln[xoff+inx]); |
147 |
|
} |
148 |
|
for (inx = 0; inx < nrows && xoff+inx < xres; inx++) |
149 |
|
if (fwritecolrs(scanbar+inx*yres, yres, stdout) < 0) { |
178 |
|
exit(1); |
179 |
|
} |
180 |
|
for (inx = 0; inx < nrows && xoff-inx >= 0; inx++) |
181 |
< |
bcopy((char *)inln[xoff-inx], |
182 |
< |
(char *)scanbar[inx*yres+iny], |
184 |
< |
sizeof(COLR)); |
181 |
> |
copycolr(scanbar[inx*yres+iny], |
182 |
> |
inln[xoff-inx]); |
183 |
|
} |
184 |
|
for (inx = 0; inx < nrows && xoff-inx >= 0; inx++) |
185 |
|
if (fwritecolrs(scanbar+inx*yres, yres, stdout) < 0) { |