]> granicus.if.org Git - cgit/commit
shared.c: add strbuf_ensure_end
authorJohn Keeping <john@keeping.me.uk>
Sun, 7 Apr 2013 13:03:47 +0000 (14:03 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 8 Apr 2013 14:10:11 +0000 (16:10 +0200)
commitd2e20e38141c882e46eaa77f172fc2ae37a19d3b
tree1a1b7ee0bc3c0d6eb9c82f083866d6cfc56af491
parentfd00d2f9d6088223f57006949dc6ce7c36316a79
shared.c: add strbuf_ensure_end

This is a small helper so that we can easily ensure that a strbuf ends
with the specified character.

Signed-off-by: John Keeping <john@keeping.me.uk>
cgit.h
shared.c