2.12.10. _sys_istty()

This 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 is used to provide unbuffered behavior by default (in the absence of a call to set(v)buf) and to prohibit seeking.

Return

The return value is:

0

There is no interactive device

1

There is an interactive device

other

An error occurred.

Copyright © 2007 ARM Limited. All rights reserved.ARM DUI 0349A
Non-Confidential