File and Path Function
char *ttyname(int filedes);
Internationalization (I18n) Function Overview
If the file descriptor filedes is associated with a terminal device,
the ttyname function returns a pointer to a statically-allocated, null-terminated
string containing the file name of the terminal file. The value is a null pointer if the file
descriptor isn't associated with a terminal, or the file name cannot be determined.
There is no wide-character version of the function.
I18n Issues
On ANSI UTF-16 platforms, use a conversion function to convert the return
from ttyname to a wide-character string.
See Pathnames for a discussion of path and filename considerations in
an internationalized application.
Recommended Replacements*
*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.
File and Path Functions
|