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 - finit() user-definable start up procedure http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 finit()             User-definable start up procedure
------------------------------------------------------------------------------
 Declaration
   force.hdr

 Syntax
   proc finit extern

 Arguments
   None.

 Return
   None.

 Description
   The finit() function is a user-definable call back function. The
   Force runtime system calls finit() before control is passed to the main()
   function. The finit() function can perform application-specific
   initializations.

 Example
   #define EXAMPLE_SYSTEM
   #include example.hdr

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

   proc main
   Test_finit()
   endproc

See Also: fexit() main()

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