Digital UNIX Diffs - ctermid(5) Digital UNIX Diffs - ctermid(5)NAMEctermid - Generates the pathname for the controlling terminal
LIBRARY
Standard C Library (libc.a)
SYNOPSIS
#include <stdio.h> char *ctermid (
char *s );
PARAMETERS
If the s parameter is a null pointer, the string is stored in an inter‐
nal static area and the address is returned. The next call to the cter‐
mid() function overwrites the contents of the internal static area. If
the s parameter is not a null pointer, it points to a character array
of at least L_ctermid bytes. L_ctermid is defined in the stdio.}
header file, and has a value greater than 0 (zero). The pathname is
placed in this array and the value of the s parameter is returned.
DIFFERENCESvms-system(5): OpenVMS Operating System Differences
The ctermid() function generates the pathname of the controlling termi‐
nal for the current process and stores it in a string. The syntax of
this string is operating system specific so you'll get a different
string on UNIX than on OpenVMS. UNIX returns the following type of
string: "/dev/tty". OpenVMS returns the following type of string:
"_MYHOST$TNA13:".
RELATED INFORMATION
Functions: ctermid(3)CATEGORY INDEXvms-system(5)
delim off
Digital UNIX Diffs - ctermid(5)