diff options
Diffstat (limited to 'test.c')
-rw-r--r-- | test.c | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -0,0 +1,22 @@ +#include <unistd.h> +#include <stdio.h> + + +#include <survive.h> + +int main() +{ + struct SurviveContext * ctx = survive_init( &ctx ); + + if( !ctx ) + { + fprintf( stderr, "Fatal.\n" ); + return 1; + } + + while(survive_poll(ctx) == 0) + { + + } +} + |