But still I think that using a callback and stuffing the needed data in
some location is a better idea. I guess that the code will be used like
this, which shouldn't be to hard to change into a callback version:
vp = startnisppwent()
while (r = nextnisppwent(vp)) {
count++;
if (count > N) {
/* send data */
count = 0;
}
}
if (count != 0) {
/* send data */
}
endnisppwent(vp)