getttynam.c

来自「操作系统SunOS 4.1.3版本的源码」· C语言 代码 · 共 26 行

C
26
字号
#if !defined(lint) && defined(SCCSIDS)static	char sccsid[] = "@(#)getttynam.c 1.1 92/07/30 SMI"; /* from UCB 5.2 3/9/86 */#endif not lint/* * Copyright (c) 1983 Regents of the University of California. * All rights reserved.  The Berkeley software License Agreement * specifies the terms and conditions for redistribution. */#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);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?