HP C/iX Library Reference Manual (30026-90004)
216 Chapter5
HP C/iX Library Function Descriptions
isatty
isatty
Checks whether a file descriptor is associated with a display device, such as a terminal.
Syntax
int isatty (int
fildes
)
Parameters
fildes
An open file descriptor.
Return Values
1 The file descriptor is a terminal device.
0 The file descriptor is not a terminal device.
Description
The isatty function returns true or false depending on whether or not
fildes
is
associated with a terminal.
NOTE
If linking with the POSIX/iX library, refer to the description of isatty()
located in the MPE/iX Developer's Kit Reference Manual.
See Also
dup(), open()