Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - fexit() user-definable exit procedure http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 fexit()             User-definable exit procedure
------------------------------------------------------------------------------
 Declaration
   force.cmh

 Syntax
   proc fexit extern

 Arguments
   None.

 Return
   None.

 Description
   The fexit() function is a user-definable call back function. The
   Force runtime system calls fexit() when the application is just about
   exiting, during the standard shut down process initiated by the quit
   command, or by returning from the main() function. The fexit()
   procedure can perform application-specific clean up tasks.

 Example
   #define EXAMPLE_SYSTEM
   #include example.hdr

   proc finit
   ? "Program initialization"
   endproc
   
   proc fexit
   ? "Program exiting"
   endproc
   
   proc Test_fexit
   ? "Program executing"
   endproc

   proc main
   Test_fexit()
   endproc

See Also: finit() main()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson