Transact C client library


sp_fetch


Actually read data bytes from a previously built result set.

ANSI Prototype

_kernel_oserror *sp_fetch(const TYPSID, const TYPCID, void *const, const mfpos_t, const mfpos_t, size_t *const);

Possible errors

Sample code

{
TYPSID gsid;
TYPCID csid;
const mfpos_t zdebut = 0, zfin = 4;
size_t bytecount;
_kernel_oserror *e;
/* gsid and csid must be given values before calling sp_fetch */
e= sp_select(gsid, csid, zdebut, zfin, &bytecount);
if(!e)	fprintf(stderr,"Expected byte count: %u\n"
	"Returned byte count: %u\n", zfin - zdebut, bytecount);
...
}