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 scdtrget(
           int handle,
           long recno,
           char **data,
           int command );

PROTOTYPE IN
   sc_base.h

DESCRIPTION
   scdtrget reads the desired record recno from the memo file
   specified by handle. A buffer large enough to hold the text will be
   allocated, the address of which is returned in data.

   command controls whether or not the soft carriage returns are
   stripped. Use SC_CRUNCHNG to leave the soft carriage returns alone, or
   use SC_CRDELETE to remove them.

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

   void main()
   {
     int dbt;
     char *data;

     scdinit(20,0);
     if (scdtopenx(&dbt,"TOC.DBT",SC_SHARED) == SC_SUCCESS) {
       scdtrget(dbt,1L,&data,SC_CRDELETE);
       puts(data);
       free(data);
       scddclose(dbt);
     }
     scdterm();
   }

See Also: scdtrget

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