| 9 |
|
*/ |
| 10 |
|
|
| 11 |
|
#include <stdio.h> |
| 12 |
+ |
#include <math.h> |
| 13 |
+ |
#ifdef MSDOS |
| 14 |
+ |
#include <fcntl.h> |
| 15 |
+ |
#endif |
| 16 |
|
#include "color.h" |
| 17 |
|
|
| 18 |
|
|
| 22 |
|
|
| 23 |
|
COLOR expos = WHTCOLOR; |
| 24 |
|
|
| 25 |
+ |
extern char *malloc(); |
| 26 |
|
|
| 27 |
+ |
|
| 28 |
|
headline(s) /* check header line */ |
| 29 |
|
char *s; |
| 30 |
|
{ |
| 59 |
|
COLR *scan; |
| 60 |
|
COLR cmin, cmax; |
| 61 |
|
int xmin, ymin, xmax, ymax; |
| 62 |
< |
|
| 62 |
> |
#ifdef MSDOS |
| 63 |
> |
extern int _fmode; |
| 64 |
> |
_fmode = O_BINARY; |
| 65 |
> |
setmode(fileno(stdin), O_BINARY); |
| 66 |
> |
#endif |
| 67 |
|
for (i = 1; i < argc; i++) /* get options */ |
| 68 |
|
if (!strcmp(argv[i], "-o")) |
| 69 |
|
orig++; |