#include <unistd.h> char *ttyname(int file);
Gives the name of the terminal associated with file.
Returns "con" if file is a device, else NULL
.
not ANSI, POSIX
char *tty = ttyname(0);
Go to the first, previous, next, last section, table of contents.