isatty.c 161 B

1234567891011
  1. /* See LICENSE of license details. */
  2. #include <unistd.h>
  3. int _isatty(int fd)
  4. {
  5. if (fd == STDOUT_FILENO || fd == STDERR_FILENO)
  6. return 1;
  7. return 0;
  8. }