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