isatty.c

来自「freedos32的源代码」· C语言 代码 · 共 17 行

C
17
字号
#include <unistd.h>#include <ll/i386/hw-data.h>#include <filesys.h>int isatty(int fd){  int res;  res = fd32_get_dev_info(fd);  if ((res & 0x83) == 0x83) {    return 1;  }  return 0;}

⌨️ 快捷键说明

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