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

PROTOTYPE IN
   sc_base.h

DESCRIPTION
   scdtrput writes data to the memo file specified by handle. The
   record number written is returned in recno. This record number must
   be then written to the data output buffer via a call to scddfput. This
   function assumes that data is an ASCIIZ string with a maximum length
   of 65,536 characters.

   The user can directly control whether or not the soft carriage returns are
   added and, if so, where. If linelength is zero (0) no soft carriage
   returns will be added, else linelength specifies the maximum length of
   a memo line. It cannot be less than 10 nor greater than 132.

NOTES
   Existing soft carriage returns are not removed before new ones are added.

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) {
       strcpy(data,"hello world.");
       scdtrput(dbt,&recno,data,66);
       printf("%ld",recno);
       scddclose(dbt);
     }
     scdterm();
   }

See Also: scdtrput

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