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 scddrdel(
           int handle,
           long recno );

PROTOTYPE IN
   sc_base.h

DESCRIPTION
   scddrdel will flag a record specified by recno as 'deleted'. To
   maintain compatibility with dBASE the data record cannot be reused, but it
   can be recovered by scddrundel.

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

   void main()
   {
     int dbf;

     scdinit(20,0);
     if (scddopenx(&dbf,"TOC.DBF",0) == SC_SUCCESS) {
       scddrdel(dbf,1L);
       scddrget(dbf,1L);
       puts(scemsg()); /* WARNING - record read is marked deleted */
       scddclose(dbf);
     }
     scdterm();
   }

See Also: scddrundel

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