[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
ttyname

Retrieve the name of the terminal associated with a file ID.
Compatibility:
This function is compatible with the following targets:
Prototype:
#include <unistd.h>
char *ttyname(int fildes);
Parameters:
Parameters for this facility are:
Remarks:
The function ttyname() retrieves the name of the terminal associated with the file ID.
Return:
ttyname() returns a character pointer to the name of the terminal associated with the file ID, or NULL if the file ID doesn't specify a terminal.
For example of ttyname() usage:
Refer to "Example of isatty() ttyname() usage.".
[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.
Last updated: August 16, 2000