#include
#include
#include
int main(void)
{
int fd;
printf(Hello #1
);
fd = open(myfile.txt,
O_WRONLY | O_CREAT,
0644);
dup2(fd, STDOUT_FILENO);
close(fd);
printf(Hello #2
);
return 0;
}
#include
#include
#include
int main(void)
{
int fd;
printf(Hello #1
);
fd = open(myfile.txt,
O_WRONLY | O_CREAT,
0644);
dup2(fd, STDOUT_FILENO);
close(fd);
printf(Hello #2
);
return 0;
}
Only logged in customers who have purchased this product may leave a review.
Reviews
There are no reviews yet.