
Click above to get retro games delivered to your door ever month!
X-Hacker.org- libc - <b>ttyname</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ttyname
=======
Syntax
------
#include <unistd.h>
char *ttyname(int file);
Description
-----------
Gives the name of the terminal associated with FILE.
Return Value
------------
Returns "con" if FILE is a device, else `NULL'.
Example
-------
char *tty = ttyname(0);
Online resources provided by: http://www.ousob.com --- NG 2 HTML conversion by Dave Pearson