Defined in stdio.h, the
_fisatty() function determines whether the given
stdio stream is attached to a terminal device or a normal file.
It calls the
function on the underlying file handle.
This function is not part of the C library standard, but the Arm® C library supports it as an extension.
The return value indicates the stream destination: