]> git.ozlabs.org Git - ccan/commitdiff
bytestring: Implement bytestring_spn() and bytestring_cspn()
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 22 Oct 2014 13:37:22 +0000 (15:37 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 30 Oct 2014 14:04:56 +0000 (01:04 +1100)
Add bytestring_spn() and bytestring_cspn() functions which, in analogy to
strspn() and strcspn() return the lengths of initial sub-bytestrings which
either contain only a given set of bytes, or anything except a given set
of bytes.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>

No differences found