🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #2979

Detecting a printer

#2979
From: LAUGHLIN, CHET
Date: Fri, 09 Nov 1990 22:40
20 lines
1237 bytes
I am upgrading/maintaining a program written in TurboC that uses
the BIOSPRINT function to print to a printer.  However, if a printer
is not attached it takes several seconds (10-30) before the program
gets an error code back.  What is a *quick* way to detect if a
printer is out there?  Below is a sample of the code used in the
program.

prog_print_char(c)    /* of course, no documentation...*/
   char c;
{
   return(biosprint(0,c,0));
}

thankyou
+---------------------------------------------------------------+
| Chet Laughlin                  CTL8588@RIGEL.TAMU.EDU         |
|   "I have no opinions as I          (128.194.4.4)             |
|    do not exist, my lawyers                                   |
|    told me so."                                               |
+---------------------------------------------------------------+
Technical Details
Message-ID: <5493@lanl.gov>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!lanl!ctl8588@star.tamu.edu

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!lanl!ctl8588@star.tamu.edu
From: ctl8588@star.tamu.edu (LAUGHLIN, CHET)
Newsgroups: comp.os.msdos.programmer
Subject: Detecting a printer
Message-ID: <5493@lanl.gov>
Date: 9 Nov 90 22:40:23 GMT
Sender: news@lanl.gov
Reply-To: ctl8588@star.tamu.edu
Organization: THE CLUELESS
Lines: 20