diff options
Diffstat (limited to 'test.c')
-rw-r--r-- | test.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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; } |