rt-thread-official/bsp/gd32vf103v-eval/libraries/n22/stubs/isatty.c

11 lines
169 B
C

/* See LICENSE of license details. */
#include <unistd.h>
int _isatty(int fd) {
if (fd == STDOUT_FILENO || fd == STDERR_FILENO)
return 1;
return 0;
}