[ccan] tok_itr pull request

Rusty Russell rusty at rustcorp.com.au
Sat Apr 6 14:50:10 EST 2013


anthony cantor <ar.cantor at gmail.com> writes:
> Hi Rusty,
> Thanks for the helpful suggestions, Ive sent another pull request with
> updates to the code based on your suggestions, please let me know what you
> think.
>
> I addressed the truncation problem by refactoring some of the code to allow
> for a tok_itr_val_len function which can be called before a call to
> tok_itr_val such that the user of the module can allocate a correctly sized
> buffer on their own. this also allows for another higher level module to be
> built on top of the original one that captures some of the simplicity of
> your suggestion which defined a fundamental tok_itr(...) function:

Make much more sense...

Cheers,
Rusty.


More information about the ccan mailing list