NIS+ enumeration of all database entries (fwd)
Luke Kenneth Casson Leighton
lkcl at switchboard.net
Mon May 18 14:16:21 GMT 1998
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)
>
>
More information about the samba-technical
mailing list