diff options
author | Jeff King <peff@peff.net> | 2011-06-09 19:54:58 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-06-22 22:24:51 +0400 |
commit | 2f1d9e2b93e1b7fbfcfa59331db89dd6c76a3505 (patch) | |
tree | e94c085b9536fa2d196c546482b9c80dfee6fb0b /sideband.c | |
parent | c5d6350bdc8d0d8bd4bd1aa0273313e71cd548f6 (diff) |
strbuf: allow strbuf_split to work on non-strbufs
The strbuf_split function takes a strbuf as input, and
outputs a list of strbufs. However, there is no reason that
the input has to be a strbuf, and not an arbitrary buffer.
This patch adds strbuf_split_buf for a length-delimited
buffer, and strbuf_split_str for NUL-terminated strings.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sideband.c')
0 files changed, 0 insertions, 0 deletions