[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
USAGE
   signed 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
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson