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@gmail.com>2022-06-04 15:10:02 -0400
commitb5903bb897ac85a0b548e3dbcab3697f4ce9cd5f (patch)
tree044d4295669d07b8d837e11a178ac0dc5fc36615 /lib/string_helpers.c
parent4b0986a3613c92f4ec1bdc7f60ec66fea135991f (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