isatty

Indicates if a specified file descriptor is associated with a terminal.

Format

#include  <unistd.h>

int isatty  (int file_desc);

Argument

file_desc
A file descriptor.

Return Values
If the file descriptor is associated with a terminal. 
If the file descriptor is not associated with a terminal. 
-1  Indicates an error (for example, if the file descriptor is not associated with an open file). 


Previous Page | Next Page | Table of Contents | Index