aboutsummaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test.c')
-rw-r--r--test.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/test.c b/test.c
new file mode 100644
index 0000000..b7f9627
--- /dev/null
+++ b/test.c
@@ -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)
+ {
+
+ }
+}
+