isatty.c

来自「AUPE的源代码」· C语言 代码 · 共 10 行

C
10
字号
#include	<termios.h>

int
isatty(int fd)
{
	struct termios	term;

	return(tcgetattr(fd, &term) != -1); /* true if no error (is a tty) */
}

⌨️ 快捷键说明

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