getting users' tty # into a C program

Doug Gwyn gwyn at smoke.BRL.MIL
Mon Mar 6 06:26:11 AEST 1989


In article <441 at lakesys.UUCP> davek at 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...



More information about the Comp.lang.c mailing list