blob: dcbfc8163791d4b291df4d44d606403f68ec06f3 [file] [log] [blame] [raw]
/*
* This file has no copyright assigned and is placed in the Public Domain.
* No warranty is given.
*
* Written by PC GO
*
*/
#include <windows.h>
#include <errno.h>
int isatty(int fd) {
if(fd == -1) {
errno = EBADF;
return 0;
}
return GetFileType((void *)fd) == FILE_TYPE_CHAR;
}