8 |
|
Auckland, New Zealand |
9 |
|
*/ |
10 |
|
#include <stdio.h> |
11 |
– |
#include <stdlib.h> |
11 |
|
#include "pict.h" |
12 |
|
#include "color.h" |
13 |
|
|
14 |
+ |
extern char *malloc(); |
15 |
+ |
|
16 |
|
char cbuf[8192*5]; |
17 |
|
char pbuf[8192]; |
18 |
|
int outbytes; |
19 |
|
FILE *outf, *inf; |
20 |
|
char **gargv; |
21 |
|
|
21 |
– |
putpic(int, int); |
22 |
– |
|
22 |
|
putrect(xorg,yorg,xsize,ysize) |
23 |
|
int xorg, yorg, xsize, ysize; |
24 |
|
{ |
192 |
|
putbyte(0); |
193 |
|
} |
194 |
|
|
195 |
< |
int getrow(FILE *in, char *mybuff, int xsize) |
195 |
> |
int |
196 |
> |
getrow(in, mybuff, xsize) |
197 |
> |
FILE *in; |
198 |
> |
char *mybuff; |
199 |
> |
int xsize; |
200 |
|
{ |
201 |
|
COLOR color; |
202 |
|
COLR *scanin = (COLR*) malloc(xsize * sizeof(COLR)); |