* typeof - return a 2 character teletype type code from /etc/ttywhere
* Bill Joy UCB September 24, 1977
char ttytype
[] "/etc/ttytype";
if ((ibuf
= fopen(ttytype
, "r")) == NULL
)
if (c
== '\n' || c
== -1) {
if (c
== '\n' || c
== -1)
if (c2
== '\n' || c2
== -1)
while (c
!= '\n' && c
!= -1);
stype
[1] = (tty
>> 8) & 0377;