You copied the Doc URL to your clipboard.

4.39 _sys_istty()

Defined in rt_sys.h, the _sys_istty() function determines if a file handle identifies a terminal.

Syntax

int _sys_istty(FILEHANDLE fh);

Usage

When a file is connected to a terminal device, this function provides unbuffered behavior by default (in the absence of a call to set(v)buf) and prohibits seeking.

Returns

The return value is one of the following values:

0

There is no interactive device.

1

There is an interactive device.

other

An error occurred.

Was this page helpful? Yes No