Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- SoftC Database Library v2.1 Guide - usage http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
USAGE
   int scdterm( void );

PROTOTYPE IN
   sc_base.h

DESCRIPTION
   scdterm is called once at the end of the program. Memory allocated
   by scdinit for internal control structures will be freed. All files
   open will be closed, any locks applied will be released, and any memory
   allocated for them will be freed. Any errors encountered will be returned
   in sc_code.

NOTES
   It is probably a good idea to call atexit with scdterm at the very
   beginning of your application. This will ensure that all buffered data is
   written to disk before the program terminates. Be aware that scdterm
   can encounter errors which you may or may not be able to display if atexit
   is used.

EXAMPLE
   #include <stdio.h>
   #include <sc_base.h>

   void main()
   {
     atexit(scdterm());
     scdinit(20,0);
     .
     . body of application
     .
     puts("Terminating...");
   }

See Also: scdinit

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