From: dontmailme AT iname DOT com (Steamer) Newsgroups: comp.os.msdos.djgpp Subject: Re: Newbie question about strings in C .. Date: Wed, 05 Jul 2000 19:07:27 GMT Organization: always disorganized Lines: 11 Message-ID: <3963875c.42907716@news.freeserve.net> References: <396119a7 DOT 31315113 AT news> <396230e0 DOT 2867154 AT news DOT wins DOT uva DOT nl> <3962e704 DOT 1850632 AT news DOT freeserve DOT net> <200007051813 DOT OAA20900 AT envy DOT delorie DOT com> NNTP-Posting-Host: modem-169.vermont.dialup.pol.co.uk X-Trace: news6.svr.pol.co.uk 962824047 31361 62.137.96.169 (5 Jul 2000 19:07:27 GMT) NNTP-Posting-Date: 5 Jul 2000 19:07:27 GMT X-Complaints-To: abuse AT theplanet DOT net X-Newsreader: Forte Free Agent 1.11/32.235 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com DJ Delorie wrote: > > There isn't even a standard way to check that stdin isn't coming > > from a file. > > What's wrong with fstat(fileno(stdin), &s) ? Neither fstat() nor fileno() is defined in ANSI/ISO C, which is what I meant by "standard". S.