- pcomp, format, nrecs, &recs);
-
- /*
- ODR stream,
- const char *setname,
- Z_RecordComposition *comp,
- oid_value input_format,
- int num_recs,
- ZebraRetrievalRecord *recs);
- */
-
- nextrecno=start+1;
+ pcomp, format, nrecs,recs);
+ printf("rc=%d\n",rc);
+ if (0==rc)
+ {
+ for (i=0;i<nrecs;i++)
+ {
+ printf("Err %d: %d\n",i,recs[i].errCode);
+ if (recs[i].buf)
+ {
+ wrbuf_printf(outbuff,"Record %d\n", recs[i].position);
+ wrbuf_write(outbuff, recs[i].buf, recs[i].len);
+ wrbuf_puts(outbuff, "\n");
+ } else
+ wrbuf_printf(outbuff,"NO Record %d\n", recs[i].position);
+ }
+ nextrecno=start+nrecs+1;
+ }