Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!pasteur!ames!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: getting users' tty # into a C program Message-ID: <9794@smoke.BRL.MIL> Date: 5 Mar 89 20:26:11 GMT References: <441@lakesys.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 6 In article <441@lakesys.UUCP> davek@lakesys.UUCP (Dave Kraft) writes: >I am writing a C program that need a user's tty number (i.e. tty3A). Is there >any internal/external function that can accomplish this? Most UNIX systems have a ttyname() library function for doing this. It doesn't work perfectly...