Date: Mon, 18 May 1998 14:10:34 +0000 (GMT) From: Luke Kenneth Casson Leighton <lkcl@switchboard.net> To: Samba Technical List <samba-technical@samba.anu.edu.au> Subject: Re: NIS+ enumeration of all database entries (fwd)
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)