aboutsummaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2016-11-30 22:05:43 -0500
committercnlohr <lohr85@gmail.com>2016-11-30 22:05:43 -0500
commit8b77db6280c6d832eb89455e1b30877454a9a5a1 (patch)
treea192a404d5596caf04915170c33cc6e598a55b65 /test.c
parentc1542a78999791d9fefc6e0d2805494eb1d1bd44 (diff)
downloadlibsurvive-8b77db6280c6d832eb89455e1b30877454a9a5a1.tar.gz
libsurvive-8b77db6280c6d832eb89455e1b30877454a9a5a1.tar.bz2
Starting to get data.
Diffstat (limited to 'test.c')
-rw-r--r--test.c9
1 files changed, 7 insertions, 2 deletions
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;
}