Copyright (c) 1983 Regents of the University of California.
All rights reserved. The Berkeley software License Agreement
specifies the terms and conditions for redistribution.
@(#)ttynam.3 6.1 (Berkeley) 05/15/85
All rights reserved. The Berkeley software License Agreement
specifies the terms and conditions for redistribution.
@(#)ttynam.3 6.1 (Berkeley) 05/15/85
TTYNAM 3F ""
C 5 NAME
ttynam, isatty - find name of a terminal port
SYNOPSIS
character*(*) function ttynam (lunit) logical function isatty (lunit) DESCRIPTION
Ttynam returns a blank padded path name
of the terminal device associated with logical unit
lunit . Isatty returns .true. if lunit is associated with a terminal device, .false. otherwise.
FILES
/dev/\(**
DIAGNOSTICS
Ttynam returns an empty string (all blanks) if
lunit is not associated with a terminal device in directory `/dev'.