Brief Index      Full Index      Events Index      I.M. Reference

Exit_Program

Functions

void Exit_Program (void)

Function Documentation

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.

Brief Index      Full Index      Events Index      I.M. Reference