ISATTYSection: Linux Programmer's Manual (3)
Return to Main Contents
NAMEisatty - does this descriptor refer to a terminal
#include <unistd.h> int isatty ( int desc );
DESCRIPTIONreturns 1 if desc is an open descriptor connected to a terminal and 0 else.
CONFORMING TOSVID, AT&T, X/OPEN, BSD 4.3
SEE ALSOfstat(2), ttyname(3)
This document was created by man2html, using the manual pages.
Time: 06:39:35 GMT, November 29, 2021