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 scddinfo(
           int handle,
           SC_DBFINFO *info );

PROTOTYPE IN
   sc_base.h

DESCRIPTION
   scddinfo returns an information structure (SC_DBFINFO) for the
   file associated with handle.

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

   void main()
   {
     int dbf;
     SC_DBFINFO info;

     scdinit(20,0);
     if (scddopenx(&dbf,"TOC.DBF",0) == SC_SUCCESS) {
       scddinfo(dbf,&info);
       puts(info.fname);
       if (info.style == SC_DB3)
         puts("dBASE III data file");
       else {
         puts("dBASE IV data file");
         if (info.memo)
           puts("memo file attached");
         else
           puts("no memo file attached");
         if (info.mdx)
           puts(".MDX file used")
         else
           puts("No .MDX file used");
         if (info.trans)
           puts("Transaction in progress");
         if (info.encrypt)
           puts("File encrypted");
       }
       scddclose(dbf);
     }
     scdterm();
   }

See Also: scddopenx

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