delorie.com/djgpp/doc/libc/libc_831.html | search |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
#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
.
ANSI/ISO C | No |
POSIX | 1003.2-1992; 1003.1-2001 |
char *tty = ttyname(0); |
webmaster | delorie software privacy |
Copyright © 2004 | Updated Apr 2004 |