sprinter: Add a string_len method
authorAustin Clements <amdragon@MIT.EDU>
Fri, 3 Aug 2012 01:14:49 +0000 (21:14 -0400)
committerDavid Bremner <bremner@debian.org>
Fri, 3 Aug 2012 23:21:29 +0000 (20:21 -0300)
commit14883b07003b9ed4223cd8f2c03b301fddae07bd
tree216ab7263c82a84aff4a03aa1ce759148cc07080
parent624d1897ce70fde8a41f2ea245db2a5e27f16ce1
sprinter: Add a string_len method

This method allows callers to output strings with specific lengths.
It's useful both for strings with embedded NULs (which JSON can
represent, though parser support is apparently spotty), and
non-terminated strings.
sprinter-json.c
sprinter-text.c
sprinter.h