From: "Bas Hamstra" 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 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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.