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

This introduces the functions bytestring_splitchr_first() and
bytestring_splitchr_next() which can be used to iterate through substrings
of a bytestring separated by a single, specified delimiter character.

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