ttyname

Hurricane Electric Internet Services: Accounts starting at $9.95/month
Hurricane Electric Internet Services

NAME

       ttyname - return name of a terminal


SYNOPSIS

       #include <unistd.h>

       char *ttyname ( int desc );


DESCRIPTION

       Returns  a  pointer to the pathname of the terminal device
       that is open on the file descriptor desc, or NULL on error
       (for example, if desc is not connected to a terminal).


CONFORMING TO

       POSIX.1


SEE ALSO

       isatty(3), fstat(3)
Hurricane Electric Internet Services: Accounts starting at $9.95/month
Hurricane Electric Internet Services
Copyright (C) 1998 Hurricane Electric. All Rights Reserved.