* Copyright (c) 1983 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
static char sccsid
[] = "@(#)getttynam.c 5.1 (Berkeley) %G%";
register struct ttyent
*t
;
while (t
= getttyent()) {
if (strcmp(tty
, t
->ty_name
) == 0)