Initial import.
[profile/ivi/apr.git] / test / proc_child.c
1 #include "apr.h"
2 #include <stdio.h>
3 #if APR_HAVE_UNISTD_H
4 #include <unistd.h>
5 #endif
6 #if APR_HAVE_IO_H
7 #include <io.h>
8 #endif
9 #include <stdlib.h>
10
11 int main(void)
12 {
13     char buf[256];
14     int bytes;
15     
16     bytes = (int)read(STDIN_FILENO, buf, 256);
17     if (bytes > 0)
18         write(STDOUT_FILENO, buf, (unsigned int)bytes);
19
20     return 0; /* just to keep the compiler happy */
21 }