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