[ccan] [PATCH] mem: module for common operations on addr+length regions

Cody P Schafer dev at codyps.com
Sat Aug 2 12:13:46 EST 2014


On Wed, Jul 30, 2014 at 2:53 AM, David Gibson
<david at gibson.dropbear.id.au> wrote:
> On Wed, Jul 30, 2014 at 01:47:03AM -0400, Cody P Schafer wrote:
>> Impliments 'mem' variants of <string.h> and <ccan/str/str.h>
>> functions.
>
> Uh.. you do realise this is just about what the bytestring module
> already does?

I didn't, I had not yet looked at those patches closely.

As you've already got a module going, I'm happy with tweaking these to
call your functions, the rational being that I'm not sure I want to
deal with wrapping/unwrapping the fields in a struct, and I'm not
ready to commit to using bytestrings for all my char * + length needs
:)


More information about the ccan mailing list