home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
LIBSRC.ZOO
/
libsrc
/
local
/
isatty.c
< prev
next >
Wrap
Text File
|
1992-02-16
|
338b
|
22 lines
#define INCL_DOSFILEMGR
#include <os2.h>
ULONG Dos32QueryHType() asm ("Dos32QueryHType");
int isatty (int handle)
{
ULONG handtype;
ULONG flagword;
ULONG rc;
rc = Dos32QueryHType (handle, &handtype, &flagword);
if (rc) return (0);
if (handtype & 255 == 1)
return (1);
return (0);
}