From 8b77db6280c6d832eb89455e1b30877454a9a5a1 Mon Sep 17 00:00:00 2001 From: cnlohr Date: Wed, 30 Nov 2016 22:05:43 -0500 Subject: Starting to get data. --- test.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'test.c') diff --git a/test.c b/test.c index 2a99d2b..0977d3d 100644 --- a/test.c +++ b/test.c @@ -9,13 +9,18 @@ void survivefault( struct SurviveContext * ctx, const char * fault ) exit( -1 ); } +void survivenote( struct SurviveContext * ctx, const char * fault ) +{ + fprintf( stderr, "Info: %s\n", fault ); +} + int main() { - struct SurviveContext * ctx = survive_init( &survivefault ); + struct SurviveContext * ctx = survive_init( &survivefault, &survivenote ); if( !ctx ) { - fprintf( stderr, "Fatal.\n" ); + fprintf( stderr, "Fatal. Could not start\n" ); return 1; } -- cgit v1.2.3