Return to test_base64.c CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / libaitwww / example |
version 1.1, 2012/09/17 13:05:47 | version 1.1.2.1, 2012/09/17 13:05:47 |
---|---|
Line 0 | Line 1 |
#include <stdio.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <aitwww.h> | |
int | |
main(int argc, char **argv) | |
{ | |
int fd = STDOUT_FILENO; | |
if (argc > 1) { | |
fd = open(argv[1], O_RDONLY); | |
if (fd == -1) { | |
perror("open"); | |
return 1; | |
} | |
} | |
if (fd > 2) | |
close(fd); | |
return 0; | |
} |