📄 flterm.c
字号:
/*------------ Telecommunications & Signal Processing Lab ------------- McGill UniversityRoutine: int FLterm (FILE *fp)Purpose: Determine if a file pointer is associated with a terminalDescription: This routine determines if a file specified by its file pointer is associated with a terminal device.Parameters: <- int FLterm Return value, 1 for a terminal, 0 otherwise -> FILE *fp File pointerAuthor / revision: P. Kabal Copyright (C) 1999 $Revision: 1.11 $ $Date: 1999/06/14 15:35:41 $----------------------------------------------------------------------*/static char rcsid[] = "$Id: FLterm.c 1.11 1999/06/14 FilterDesign-v4r0a $";#include <stdio.h> /* fileno */#include <libtsp/nucleus.h>#include <libtsp/sysOS.h>#if (SY_POSIX)# include <unistd.h> /* isatty */#else# include <io.h>#endifintFLterm (FILE *fp){ return isatty (fileno (fp));}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -