set_unexpected

unexpected_handler
    set_unexpected(unexpected_handler ph) throw();

The function establishes a new unexpected handler as the function *ph. Thus, ph must not be a null pointer. The function returns the address of the previous unexpected handler.