.TH ttyslot() "" "" "General Function (libc)"
.PC "Return a terminal's line number"
\fBint ttyslot(\|)\fR
.PP
.B ttyslot()
returns the number of the line in the file
.B /etc/ttys
that describes the controlling terminal
(see
.BR ttys ).
.SH Files
\fB/dev/*\fR \(em Terminal special files
.br
\fB/etc/ttys\fR \(em Login terminals
.SH "See Also"
.Xr "libc" libc
.SH Diagnostics
.B ttyslot()
returns zero if an error occurs.
