7 |
|
|
8 |
|
#include <stdio.h> |
9 |
|
#include <math.h> |
10 |
+ |
#include <string.h> |
11 |
|
|
12 |
|
#include "platform.h" |
13 |
|
#include "color.h" |
14 |
+ |
#include "resolu.h" |
15 |
|
|
16 |
|
|
17 |
|
int orig = 0; |
20 |
|
|
21 |
|
COLOR expos = WHTCOLOR; |
22 |
|
|
23 |
+ |
static gethfunc headline; |
24 |
|
|
25 |
< |
headline(s) /* check header line */ |
26 |
< |
char *s; |
25 |
> |
|
26 |
> |
static int |
27 |
> |
headline( /* check header line */ |
28 |
> |
char *s, |
29 |
> |
void *p |
30 |
> |
) |
31 |
|
{ |
32 |
|
char fmt[32]; |
33 |
|
double d; |
61 |
|
COLR *scan; |
62 |
|
COLR cmin, cmax; |
63 |
|
int xmin, ymin, xmax, ymax; |
64 |
< |
SET_DEFAULT_BINARY() |
64 |
> |
SET_DEFAULT_BINARY(); |
65 |
|
SET_FILE_BINARY(stdin); |
66 |
|
for (i = 1; i < argc; i++) /* get options */ |
67 |
|
if (!strcmp(argv[i], "-o")) |