Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!pilchuck!dataio!fnx!nazgul!bright From: bright@nazgul.UUCP (Walter Bright) Newsgroups: comp.os.msdos.programmer Subject: Re: Sensing STDOUT redirection in C Keywords: STDOUT, Redirection, MSDOS Message-ID: <305@nazgul.UUCP> Date: 26 Apr 91 17:02:42 GMT References: Reply-To: bright@nazgul.UUCP (Walter Bright) Organization: Zortech, Seattle Lines: 6 In article collinsa@p4.cs.man.ac.uk (Adrian Collins) writes: /Does anybody know how to sense whether output redirection has been used /on the command line? if (!isatty(fileno(stdin))) /* input has been redirected to a block device */