summaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-03-22 00:06:20 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2022-10-03 22:52:21 -0400
commit2cf3bfcdf713cd5244fc46eeb9e701d3e79dc46a (patch)
tree9f7cb53fdb3cb96b33111f088c80875297efd946 /lib/string_helpers.c
parentf61696a76646a6ec1103e13475d5999546776151 (diff)
lib/printbuf: New data structure for printing strings
This adds printbufs: a printbuf points to a char * buffer and knows the size of the output buffer as well as the current output position. Future patches will be adding more features to printbuf, but initially printbufs are targeted at refactoring and improving our existing code in lib/vsprintf.c - so this initial printbuf patch has the features required for that. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions