4.3BSD beta release manual page
[unix-history] / usr / src / lib / libc / gen / getttynam.c
/* @(#)getttynam.c 4.1 (Berkeley) %G% */
#include <ttyent.h>
struct ttyent *
getttynam(tty)
char *tty;
{
register struct ttyent *t;
setttyent();
while (t = getttyent()) {
if (strcmp(tty, t->ty_name) == 0)
break;
}
endttyent();
return (t);
}