3 * Author: Terrence Holm Aug. 1988
6 * Ctermid(3) returns a pointer to a string naming the controlling
7 * terminal. If <name_space> is NULL then local PRIVATE storage
8 * is used, otherwise <name_space> must point to storage of at
9 * least L_ctermid characters.
11 * Returns a pointer to "/dev/tty".
18 _PROTOTYPE( char *ctermid
, (char *name_space
));
24 char *ctermid(name_space
)
27 PRIVATE
char termid
[L_ctermid
];
29 if (name_space
== (char *)NULL
) name_space
= termid
;
30 strcpy(name_space
, "/dev/tty");