🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Sensing STDOUT redirection in C

#5991
From: Nick FitzGerald, CSC, Uni. of Ca...
Date: Mon, 29 Apr 1991 02:13
15 lines
1242 bytes
In article <collinsa.672410890@p4.cs.man.ac.uk>, collinsa@p4.cs.man.ac.uk
(Adrian Collins) writes:
>[deletions] 
> As I've had quite a few requests for responses to my original query, here
> is a method of working out whether STDIN and STDOUT are being redirected.
> This is a slightly altered version of the code sent to me by
> Nick FitzGerald. 

Adrian should have pointed out that the code I sent him was posted late
last year (to this group ?) by Peter Davidson.

If Peter's still reading along, thanks and apologies (I'm presumptuous
enough to extend apologies on Adrian's behalf as well, 8-) ).

Nick.
Technical Details
Message-ID: <1991Apr29.141357.523@csc.canterbury.ac.nz>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!wuarchive!waikato.ac.nz!canterbury!cctr132
References: <collinsa.671721083@p4.cs.man.ac.uk> <1991Apr16.145847.20316@midway.uchicago.edu> <1991Apr18.165820.6035@amc.com> <collinsa.672410890@p4.cs.man.ac.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!wuarchive!waikato.ac.nz!canterbury!cctr132
From: cctr132@csc.canterbury.ac.nz (Nick FitzGerald, CSC, Uni. of Canterbury, NZ)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Sensing STDOUT redirection in C
Message-ID: <1991Apr29.141357.523@csc.canterbury.ac.nz>
Date: 29 Apr 91 02:13:57 GMT
References: <collinsa.671721083@p4.cs.man.ac.uk> 
 <1991Apr16.145847.20316@midway.uchicago.edu> <1991Apr18.165820.6035@amc.com> <collinsa.672410890@p4.cs.man.ac.uk>
Organization: University of Canterbury, Christchurch, New Zealand
Lines: 15