Path: 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: <1991Apr16.145847.20316@midway.uchicago.edu> <1991Apr18.165820.6035@amc.com> Organization: University of Canterbury, Christchurch, New Zealand Lines: 15 In article , 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.