gno/lib/libc/tests/stdio/filenos.c
1997-09-05 06:46:33 +00:00

11 lines
319 B
C

#include <stdio.h>
#include <unistd.h>
int main(int argc, char **argv) {
printf("stdin fileno expected %d got %d\n", STDIN_FILENO, fileno(stdin));
printf("stdout fileno expected %d got %d\n", STDOUT_FILENO, fileno(stdout));
printf("stderr fileno expected %d got %d\n", STDERR_FILENO, fileno(stderr));
return 0;
}