source: trunk/third/transcript/src/milan/fpstatus.c @ 9090

Revision 9090, 642 bytes checked in by ghudson, 28 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r9089, which included commits to RCS files with non-trunk default branches.
Line 
1/* Copyright Milan Technology, 1991 1992 */
2/* @(#)fpstatus.c       2.0 10/9/92 */
3
4#include "udp.h"
5#include <stdio.h>
6
7#ifndef SCO
8#include <sys/file.h>
9#endif
10
11#include <sys/types.h>
12
13#include "dp.h"
14
15#ifdef ANSII
16main(int argc,char **argv)
17#else
18main(argc,argv)
19int argc;
20char **argv;
21#endif
22{
23  char status_string[MAXSTRNGLEN];
24  if (argc != 2) {
25    fprintf(stderr,"Usage: fpstatus <fastport name>\n");
26    exit(1);
27  }
28  status_string[0] = 0;
29  get_printer_status(argv[1],status_string,PARALLEL);
30  fprintf(stderr,status_string);
31  status_string[0] = 0;
32  get_printer_status(argv[1],status_string,SERIAL);
33  fprintf(stderr,status_string);
34}
Note: See TracBrowser for help on using the repository browser.