ISATTY(DOS) XENIX System V ISATTY(DOS)
Name
isatty - Checks for a character device.
Syntax
#include <io.h>
int isatty (handle);
int handle;
Description
The isatty function determines whether the given handle is
associated with a character device (that is, a terminal,
console, printer or serial port).
Return Value
isatty returns a nonzero value if the device is a character
device. Otherwise, the return value is 0.
Example
#include <io.h>
int fh; long loc; . . . if (isatty (fh) ==
0) loc = tell (fh); /* if not a device, get current
** position */
Notes
This call must be compiled with the -dos flag.
Page 1 (printed 8/7/87)