Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!pasteur!ucbvax!XEROX.COM!"P.J.M._Verbruggen.ven1RX" From: "P.J.M._Verbruggen.ven1RX"@XEROX.COM Newsgroups: comp.sys.atari.st Subject: isatty function missing in both Lattice-C and MWC Message-ID: <880224-080441-2553@Xerox> Date: 24 Feb 88 15:56:17 GMT Sender: usenet@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 18 The isatty (check if file is a terminal) function is not in the libraries of both MWC and Lattice. The related function getfc is mentioned in the Lattice manual but not incorporated. I produced a poorman's isatty but would like to know if someone did a real isatty for the mentioned compilers. isatty(fh) int fh; { if(fh>2) return(0); else return(1); } Thanks Peter