| 1 |
< |
/* Copyright (c) 1991 Regents of the University of California */ |
| 1 |
> |
/* Copyright (c) 1992 Regents of the University of California */ |
| 2 |
|
|
| 3 |
|
#ifndef lint |
| 4 |
|
static char SCCSid[] = "$SunId$ LBL"; |
| 10 |
|
|
| 11 |
|
#include <stdio.h> |
| 12 |
|
|
| 13 |
+ |
#ifdef MSDOS |
| 14 |
+ |
#include <fcntl.h> |
| 15 |
+ |
#endif |
| 16 |
+ |
|
| 17 |
|
#include "color.h" |
| 18 |
|
|
| 19 |
|
#include "resolu.h" |
| 31 |
|
|
| 32 |
|
char *progname; |
| 33 |
|
|
| 34 |
+ |
extern char *malloc(); |
| 35 |
|
|
| 36 |
+ |
|
| 37 |
|
int |
| 38 |
|
neworder() /* figure out new order from old */ |
| 39 |
|
{ |
| 57 |
|
char *argv[]; |
| 58 |
|
{ |
| 59 |
|
int i; |
| 60 |
< |
|
| 60 |
> |
#ifdef MSDOS |
| 61 |
> |
extern int _fmode; |
| 62 |
> |
_fmode = O_BINARY; |
| 63 |
> |
setmode(fileno(stdout), O_BINARY); |
| 64 |
> |
#endif |
| 65 |
|
progname = argv[0]; |
| 66 |
|
|
| 67 |
|
for (i = 1; i < argc; i++) |