char *ttyname( int fd );
Pointer to a string containing the terminal device name or NULL is returned on any error.
This service returns a pointer to the pathname of the terminal
device that is open on the file descriptor fd
. If
fd
is not a valid descriptor for a terminal device,
then NULL is returned.
This routine uses a static buffer.
Copyright © 1988-2004 OAR Corporation