summaryrefslogtreecommitdiff
path: root/bsp/gd32vf103v-eval/libraries/n22/stubs/isatty.c
blob: 8bb63e1e37df5c62c41e915d019b195bb470bcc2 (plain)
1
2
3
4
5
6
7
8
9
10
/* See LICENSE of license details. */

#include <unistd.h>

int _isatty(int fd) {
    if (fd == STDOUT_FILENO || fd == STDERR_FILENO)
        return 1;

    return 0;
}