Article View: comp.sys.atari.st
Article #30827isatty function missing in both Lattice-C and MWC
From: P.J.M._Verbruggen.ven1RX
Date: Wed, 24 Feb 1988 15:56
Date: Wed, 24 Feb 1988 15:56
19 lines
791 bytes
791 bytes
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
Technical Details
Message-ID:
<880224-080441-2553@Xerox>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!pasteur!ucbvax!XEROX.COM!"P.J.M._Verbruggen.ven1RX"Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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