File and Path Function
char *ctermid(char *string);
Internationalization (I18n) Function Overview
The ctermid function returns a string containing the filename of the
controlling terminal for the current process. If string is not a null pointer,
it should be an array that can hold the string that is returned. Otherwise, a pointer to a
string in a static area is returned, which might get overwritten on subsequent calls to this
function.
An empty string is returned if the filename cannot be determined for any reason.
Even if a filename is returned, access to the file it represents is not guaranteed.
I18n Issues
On ANSI UTF-16 platforms, call ctermid , and then use a conversion function to convert the
returned multibyte-character string 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
|