char *ttyname(fd) int fd;
int isatty(fd) int fd;
ttyname() returns a pointer to the null-terminated path name of the terminal device associated with file descriptor fd.
isatty() returns 1 if fd is associated with a terminal device, 0 otherwise.
On success, ttyname() returns a pointer to the terminal device. If fd does not describe a terminal device in directory /dev, ttyname() returns NULL.
isatty() returns 1 if fd is associated with a terminal device. It returns 0 otherwise.
The return value points to static data which are overwritten by each call.
Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97