Notice what aborttriggers the signal SIGABRTas if it were called raise(SIGABRT). You can install a signal handler that is called in this situation, for example:
#include <signal.h>
extern "C" void my_function_to_handle_aborts(int signal_number)
{
}
signal(SIGABRT, &my_function_to_handle_aborts);
abort (, - , , ), . ANSI C, Unix Windows, , , , . , , assert - , malloc . , . - , . , , .
abort. , Windows Visual ++ _set_abort_behavior, , , .