From 9548deeea9434732a718749ae931be53caba2c30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Sun, 13 May 2012 11:38:19 +0200 Subject: lavu/bprint: add av_bprint_reset(). --- libavutil/bprint.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libavutil/bprint.h') diff --git a/libavutil/bprint.h b/libavutil/bprint.h index c5d750df8b..ad65afec69 100644 --- a/libavutil/bprint.h +++ b/libavutil/bprint.h @@ -109,6 +109,11 @@ void av_bprintf(AVBPrint *buf, const char *fmt, ...) av_printf_format(2, 3); */ void av_bprint_chars(AVBPrint *buf, char c, unsigned n); +/** + * Reset the string to "" but keep internal allocated data. + */ +void av_bprint_clear(AVBPrint *buf); + /** * Test if the print buffer is complete (not truncated). * -- cgit v1.2.3