]> git.ozlabs.org Git - ccan/commit - ccan/bytestring/bytestring.h
bytestring: Split bytestrings by a string delimiter
authorDavid Gibson <david@gibson.dropbear.id.au>
Mon, 28 Jul 2014 09:33:33 +0000 (19:33 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 30 Oct 2014 14:04:59 +0000 (01:04 +1100)
commit3f60b879d0ca10fed16e6432180c847ad90b8d80
tree48f4a38b8ef049b8530970dcdc9ca0bd3708ab10
parent309577c4747b9a74b6e55d4a9b760ede84b68b4e
bytestring: Split bytestrings by a string delimiter

This introduces the functions bytestring_splitstr_first() and
bytestring_splitstr_next() which can be used to iterate through substrings
of a bytestring separated by a specified substring.

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