Transact C client library
sp_fetch
Actually read data bytes from a previously built result set.
_kernel_oserror *sp_fetch(const TYPSID, const TYPCID, void *const, const mfpos_t, const mfpos_t, size_t *const);
ERR_BUSY
;
ERR_UNKNOWN_CURSOR
;
ERR_NOT_ENOUGH_MEMORY
;
ERR_INVALID_PARAMS
;
ERR_INAPROPRIATE_CURSOR_MODE
;
Client Library: Unknown session
;
Client Library: Uninitialized client library
.
{ 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); ... }