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
   void sceclr( void );

MACRO IN
   softc.h

DESCRIPTION
   sceclr is a macro which expands to "sc_code = SC_SUCCESS". The SoftC
   Database Library error flag (sc_code) will be cleared.

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

   void main()
   {
     int dbt;
     char data[512];
     long recno;

     scdinit(20,0);
     if (scdtopenx(&dbt,"TOC.DBT",SC_BUFFER) == SC_SUCCESS) {
       .
       .
       .
       scddclose(dbt);
     }
     else {
       sceclr();
       puts("File not found. Create? Y/N");
       if (getch() == 'Y')
         scdtcreate("TOC.DBT");
     }
     scdterm();
   }

See Also: scemsg

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