]> git.ozlabs.org Git - ccan/commit
bytestring: Split bytestrings by a set of character delimiters
authorDavid Gibson <david@gibson.dropbear.id.au>
Mon, 28 Jul 2014 09:31:36 +0000 (19:31 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 30 Oct 2014 14:04:59 +0000 (01:04 +1100)
commit309577c4747b9a74b6e55d4a9b760ede84b68b4e
treee83672de001b20f602f53203b5ec240ff546f256
parentcb2d540f764b225a068a3cdd1396df4fc8dc6824
bytestring: Split bytestrings by a set of character delimiters

This introduces the functions bytestring_splitchrs_first() and
bytestring_splitchrs_next() which can be used to iterate through substrings
of a bytestring separated by any of a given set of delimiter characters.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
ccan/bytestring/bytestring.c
ccan/bytestring/bytestring.h
ccan/bytestring/test/run.c