aboutsummaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
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;
}