diff options
Diffstat (limited to 'common/common.c')
-rw-r--r-- | common/common.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/common/common.c b/common/common.c index eead096d5a..a07af8c461 100644 --- a/common/common.c +++ b/common/common.c @@ -287,3 +287,12 @@ char *mp_tag_str_buf(char *buf, size_t buf_size, uint32_t tag) } return buf; } + +char *mp_tprintf_buf(char *buf, size_t buf_size, const char *format, ...) +{ + va_list ap; + va_start(ap, format); + vsnprintf(buf, buf_size, format, ap); + va_end(ap); + return buf; +} |