Path: utzoo!attcan!uunet!mcvax!unido!nixpbe!ugun21!mue From: mue@ugun21.UUCP Newsgroups: comp.unix.questions Subject: Re: isatty() and ttyname() addendum Message-ID: <18900001@ugun21> Date: 23 Feb 89 10:28:00 GMT References: <315@wubios.wustl.edu> Lines: 8 Nf-ID: #R:wubios.wustl.edu:-31500:ugun21:18900001:000:209 Nf-From: ugun21.UUCP!mue Feb 23 11:28:00 1989 Both functions (isatty, ttyname) need a file descriptor as a parameter, not a file pointer. So you have to specify if (isatty(0 /*stdin */) ... rsp. if (ttyname(0) != NULL) ... ...mcvax!unido!hmueller.pad