diff options
author | cnlohr <lohr85@gmail.com> | 2016-11-30 22:05:43 -0500 |
---|---|---|
committer | cnlohr <lohr85@gmail.com> | 2016-11-30 22:05:43 -0500 |
commit | 8b77db6280c6d832eb89455e1b30877454a9a5a1 (patch) | |
tree | a192a404d5596caf04915170c33cc6e598a55b65 /test.c | |
parent | c1542a78999791d9fefc6e0d2805494eb1d1bd44 (diff) | |
download | libsurvive-8b77db6280c6d832eb89455e1b30877454a9a5a1.tar.gz libsurvive-8b77db6280c6d832eb89455e1b30877454a9a5a1.tar.bz2 |
Starting to get data.
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; } |