_sys_istty()

Defined in rt_sys.h, this function determines if a file handle identifies a terminal.

Show/hideSyntax

int _sys_istty(FILEHANDLE fh);

Show/hideUsage

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.

Show/hideReturns

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.

Show/hideSee also

Reference

Using ARM® C and C++ Libraries and Floating-Point Support:

Copyright © 2010-2011 ARM. All rights reserved.ARM DUI 0492E
Non-ConfidentialID071611