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 scdnkdel(
           int handle,
           void *key,
           long recno );

PROTOTYPE IN
   sc_base.h

DESCRIPTION
   scdnkdel will remove key from the index file specified by
   handle. recno is used along with key to ensure that the
   proper key has been removed from the index file.

NOTES
   When deleting character keys it is not necessary to pad the key string to
   size with spaces (" "), the function will automatically do this for you.

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

   void main()
   {
     int ndx;
     char date[16];
     long recno;

     scdinit(20,0);
     if (scdnopenx(&ndx, "TOCDATE.NDX", SC_BUFFER) == SC_SUCCESS) {
       strcpy(date,"12/02/8809:33:01");
       recno = 71L;
       scdnkdel(ndx,date,recno);
       scdnclose(ndx);
     }
     scdterm();
   }

See Also: scdnkadd

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