delorie.com/djgpp/doc/libc/libc_506.html | search |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
#include <unistd.h> int isatty(int fd); |
Tells if the file descriptor refers to a terminal device or not.
Nonzero if fd is a terminal device, zero otherwise.
ANSI/ISO C | No |
POSIX | 1003.2-1992; 1003.1-2001 |
if (isatty(1)) fflush(stdout); |
webmaster | delorie software privacy |
Copyright © 2004 | Updated Apr 2004 |