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

PROTOTYPE IN
   sc_base.h

DESCRIPTION
   scddfgets gets data from the desired field fieldno of the record
   I/O buffer. data will be returned as an ASCIIZ string.

   scddfinfo can be used to determine the length of the longest data field
   in the file.

NOTES
   Date fields are returned in the form "yyyymmdd". There is a difference
   between the date formats of scddfgets and scddfget.

   Fields are numbered from zero (0).

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

   void main()
   {
     int dbf;
     char name[65], time[9], date[9], length[11], attribute[4];
     scdinit(20,0);
     if (scddopenx(&dbf,"TOC.DBF",0) == SC_SUCCESS) {
       scddrget(dbf,1L);
       scddfgets(dbf,0,name);
       scddfgets(dbf,1,length);
       scddfgets(dbf,2,date);
       scddfgets(dbf,3,time);
       scddfgets(dbf,4,attribute);
       printf("%s %s %s %s %s\n", name,length,date,time,attribute);
       scddclose(dbf);
     }
     scdterm();
   }

See Also: scddfget scddfputs scddfinfo scddrget

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