[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
USAGE
   signed int scdtrput(
           signed int handle,
           signed long *recno,
           signed char *data,
           signed 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
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson