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 scddfputs(
           int handle,
           int fieldno,
           char *data );

PROTOTYPE IN
   sc_base.h

DESCRIPTION
   scddfputs will place data in the proper field fieldno of the
   record I/O buffer. It is the user's responsibility to provide a properly
   sized and formatted ASCIIZ string to scddfputs.

NOTES
   Fields are numbered from zero (0).

   scddfputs follows the date formatting conventions of scddfgets.
   Also be aware that the date formatting conventions of scddfget/scddfput
   are not the same as scddfgets/scddfputs.

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

   void main()
   {
     int dbf;
     long recno;

     scdinit(20,0);
     if (scddopenx(&dbf,"TOC.DBF",0) == SC_SUCCESS) {
       scddfputs(dbf,0,"ABC.XYZ");
       scddfputs(dbf,1,"    1234.0");
       scddfputs(dbf,2,"19900721");
       scddfputs(dbf,3,"20:01:45");
       scddfputs(dbf,4,"  1");
       scddrput(dbf,&recno,SC_ADD);
       scddclose(dbf);
     }
     scdterm();
   }

See Also: scddfgets scddfput

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