delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/02/12:28:21

From: "Bas Hamstra" <bas DOT hamstraNOSPAM AT wxs DOT nl>
Newsgroups: comp.os.msdos.djgpp
Subject: Help! Check for input!
Date: Sat, 2 Oct 1999 17:20:45 +0200
Organization: Planet Internet
Lines: 16
Message-ID: <7t57t1$4ije$1@reader3.wxs.nl>
NNTP-Posting-Host: gn0437-2.dial.wxs.nl
Mime-Version: 1.0
X-Trace: reader3.wxs.nl 938877665 150126 195.121.153.181 (2 Oct 1999 15:21:05 GMT)
X-Complaints-To: abuse AT wxs DOT nl
NNTP-Posting-Date: 2 Oct 1999 15:21:05 GMT
X-Newsreader: Microsoft Outlook Express 4.72.3155.0
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Sorry if I am too impatience. Posted this among other questions before...

How can I check if there is input when my stdin is redirected? I cannot use
scanf, because it locks the process if there was no input. If I *know* there
is input, I can handle it with scanf. But how do I know?

In another compiler I use PeekNamedPipe, but DJ doesn't suport that...
Surely there must be a trick...?


Regards,
Bas Hamstra.




- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019