Abort_Program

Functions

void Abort_Program (const char *message)
 Prints an error message. Calls the defined exit handlers. Exits to the operating system with a final error status. More...
 

Detailed Description

Function Documentation

◆ Abort_Program()

void Abort_Program ( const char *  message)

Prints an error message. Calls the defined exit handlers. Exits to the operating system with a final error status.

Parameters
message- A quoted string, or a string variable containing your error message. An empty string is permissible.

DETAILS

Provides an orderly way to terminate execution upon the discovery of an error.
A standard HOOPS fatal error sequence is initiated. First, the currently defined error handlers are called. The list presented includes Report_Error() (unless you've specified otherwise), which causes message to be printed out where the user can see it. Then, the currently defined exit handlers are called, usually including Reset_System() . Finally, the operating system is called, with an "error" exit status, to terminate program execution.

NOTES

RESTRICTIONS

See also
Exit_Program, Define_Exit_Handler, Define_Error_Handler, Report_Error