.\" Copyright (c) 1990, 1991 The Regents of the University of California.
.\" %sccs.include.redist.man%
.\" @(#)ctermid.3 5.2 (Berkeley) %G%
.Nd generate terminal pathname
function generates a string, that, when used as a pathname, refers to
the current controlling terminal of the calling process.
pointer, a pointer to a static area is returned.
Otherwise, the pathname is copied into the memory referenced by
is assumed to be at least
(as defined in the include
The current implementation simply returns
Upon successful completion, a
pointer is returned and the global variable
is set to indicate the error.
The current implementation detects no error conditions.
writes all information to an internal static object.
will modify the same object.