1 |
– |
/* Copyright (c) 1991 Regents of the University of California */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* |
5 |
|
* paintjet.c - program to dump pixel file to HP PaintJet color printer. |
6 |
|
* |
8 |
|
*/ |
9 |
|
|
10 |
|
#include <stdio.h> |
11 |
+ |
#ifdef MSDOS |
12 |
+ |
#include <fcntl.h> |
13 |
+ |
#endif |
14 |
+ |
#include <time.h> |
15 |
|
|
16 |
|
#include "color.h" |
17 |
|
#include "resolu.h" |
18 |
|
|
19 |
< |
#define NCOLS 1440 /* 8" at 180 dpi */ |
19 |
> |
#define NCOLS 1440 /* 8" at 180 dpi */ |
20 |
|
|
21 |
|
|
22 |
|
main(argc, argv) |
24 |
|
char *argv[]; |
25 |
|
{ |
26 |
|
int i, status = 0; |
27 |
< |
|
27 |
> |
#ifdef MSDOS |
28 |
> |
extern int _fmode; |
29 |
> |
_fmode = O_BINARY; |
30 |
> |
setmode(fileno(stdin), O_BINARY); |
31 |
> |
setmode(fileno(stdout), O_BINARY); |
32 |
> |
#endif |
33 |
|
if (argc < 2) |
34 |
|
status = printp(NULL) == -1; |
35 |
|
else |