isatty.c

来自「实用的程序代码」· C语言 代码 · 共 19 行

C
19
字号
/*-----------------------------------------------------------------------------
//     $Date: 2002/09/16 21:19:30 $
//     $RCSfile: isatty.c,v $
//-----------------------------------------------------------------------------
//
// $xilinx_legal_disclaimer
//
//---------------------------------------------------------------------------*/

/*
 * isatty -- returns 1 if connected to a terminal device,
 *           returns 0 if not. Since we're hooked up to a
 *           serial port, we'll say yes _AND return a 1.
 */
int isatty(int fd)
{
  return (1);
}

⌨️ 快捷键说明

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