Go to the first, previous, next, last section, table of contents.


isatty

Syntax

#include <unistd.h>

int isatty(int fd);

Description

Tells if the file descriptor refers to a terminal device or not.

Return Value

Nonzero if fd is a terminal device, zero otherwise.

Portability

not ANSI, POSIX

Example

if (isatty(1))
  fflush(stdout);


Go to the first, previous, next, last section, table of contents.