Exit_Program

Functions

void Exit_Program (void)
 Calls the defined exit handlers, and exits to the operating system with a normal status. More...
 

Detailed Description

Function Documentation

◆ Exit_Program()

void Exit_Program ( void  )

Calls the defined exit handlers, and exits to the operating system with a normal status.

DETAILS

Provides an orderly way for you to terminate execution. HOOPS will try to call this routine when your program terminates, but some compilers and operating systems might not support this ability, so you may want to call it yourself.

The currently defined exit handlers are called. These usually include Reset_System() , which shuts down devices and frees memory. The operating system is then called with a "normal" exit status to terminate program execution.

NOTES

RESTRICTIONS

See also
Abort_Program, Define_Exit_Handler, Reset_System.