diff --git a/biscuit/c/audio_hello.c b/biscuit/c/audio_hello.c index 0a32deb..25bc8b5 100644 --- a/biscuit/c/audio_hello.c +++ b/biscuit/c/audio_hello.c @@ -13,8 +13,14 @@ int main(int argc, char **argv) { printf("hello audio world!\n"); - fprintf(stdout, "stdout test ok\n"); - fprintf(stderr, "audio test ok\n'"); + int fd; + fd = open("/dev/stdout", O_WRONLY); + if (fd < 0) { + fprintf(stdout, "fail to open /dev/stdout"); + return 1; + } + + write(fd, "write through device file!\n", 27); return 0; }