| www.delorie.com/djgpp/doc/libc-2.01/libc_662.html | search |
#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.
char *tty = ttyname(0);
Go to the first, previous, next, last section, table of contents.
| prev next webmaster | delorie software privacy |
| Copyright © 1997 | Updated Apr 1997 |