#include #include #include #include #include /* static char *str1 = "OP1\n"; static char *str2 = "AB2\n"; */ int main() { // int f1; close(STDOUT_FILENO); // f1 = open ("myjunk", O_RDWR | O_CREAT | O_TRUNC, 0777); open ("myjunk", O_RDWR | O_CREAT | O_TRUNC, 0777); printf("print to standard output!!!\n"); fprintf(stderr, "print to standard error!!!\n"); return 0; }