forked from Mirrors/freeswitch
0488a5109a
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3733 d0543943-73ff-0310-b7d9-9358b9ac24b2
27 lines
453 B
C
27 lines
453 B
C
#include "apr.h"
|
|
#include "apr_file_io.h"
|
|
#include "apr.h"
|
|
|
|
#if APR_HAVE_STDLIB_H
|
|
#include <stdlib.h>
|
|
#endif
|
|
|
|
int main(void)
|
|
{
|
|
char buf[256];
|
|
apr_file_t *err;
|
|
apr_pool_t *p;
|
|
|
|
apr_initialize();
|
|
atexit(apr_terminate);
|
|
|
|
apr_pool_create(&p, NULL);
|
|
apr_file_open_stdin(&err, p);
|
|
|
|
while (1) {
|
|
apr_size_t length = 256;
|
|
apr_file_read(err, buf, &length);
|
|
}
|
|
exit(0); /* just to keep the compiler happy */
|
|
}
|