Date: Mon, 18 May 1998 14:16:21 +0000 (GMT) From: Luke Kenneth Casson Leighton <lkcl@switchboard.net> To: Multiple recipients of list <samba-technical@samba.anu.edu.au> Subject: Re: NIS+ enumeration of all database entries (fwd) In-Reply-To: <Pine.LNX.3.96.980518141019.230F-100000@regent.cb1.com>
ok, how about it? jeremy in particular, how about this, as you wrote the
original start/next/end-sampwent() functions.
On Tue, 19 May 1998, Luke Kenneth Casson Leighton wrote:
> 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)
>
>