summaryrefslogtreecommitdiff
path: root/test/abc.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/abc.c')
-rw-r--r--test/abc.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/abc.c b/test/abc.c
new file mode 100644
index 000000000..43583ec52
--- /dev/null
+++ b/test/abc.c
@@ -0,0 +1,28 @@
+#include <stdio.h>
+#include <fcntl.h>
+#include <sys/types.h>
+#include "apr_file_io.h"
+#include "apr_general.h"
+
+int main(int argc, char *argv[])
+{
+ ap_file_t *fd;
+ char ch;
+ int status = 0;
+ ap_context_t *context;
+
+ ap_create_context(NULL, NULL, &context);
+
+ ap_open(context, argv[1], APR_READ, -1, &fd);
+
+ while (!status) {
+ status = ap_getc(fd, &ch);
+ if (status == APR_EOF )
+ fprintf(stdout, "EOF, YEAH!!!!!!!!!\n");
+ else if (status == APR_SUCCESS)
+ fprintf(stdout, "%c", ch);
+ else
+ fprintf(stdout, " Big error, NOooooooooo!\n");
+ }
+ return 1;
+}