Date: Thu, 23 Apr 1998 18:50:25 -0400 (EDT) Message-Id: <199804232250.SAA10977@delorie.com> From: DJ Delorie To: mhaavi AT sci DOT fi CC: djgpp AT delorie DOT com In-reply-to: <353ec46f.9950927@news.sci.fi> (mhaavi@sci.fi) Subject: Re: Interfacing with printer Precedence: bulk > When I fopen() "lpt1", it gives no error even if no printer is > connected. When I fprintf() to the *FILE fopen gave me, it happily > returns the number of characters written, whether they really print > or not. I've seen DOS work this way too. Better than suddenly printing everything when you connect the printer! You can use the biosprint() functions to query the status of the printer port lines. C:\> info libc a biosprint