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