4.3BSD-UWisc/man/cat3/ttynam.3f




TTYNAM(3F)          UNIX Programmer's Manual           TTYNAM(3F)



NAME
     ttynam, isatty - find name of a terminal port

SYNOPSIS
     character*(*) function ttynam (lunit)

     logical function isatty (lunit)

DESCRIPTION
     _T_t_y_n_a_m returns a blank padded path name of the terminal dev-
     ice associated with logical unit _l_u_n_i_t.

     _I_s_a_t_t_y returns .true. if _l_u_n_i_t is associated with a terminal
     device, .false. otherwise.

FILES
     /dev/*
     /usr/lib/libU77.a

DIAGNOSTICS
     _T_t_y_n_a_m returns an empty string (all blanks) if _l_u_n_i_t is not
     associated with a terminal device in directory `/dev'.

































Printed 12/27/86          May 15, 1985                          1