From a8b267540ecca0fa7d136078c7b84e2c6cd87e06 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 5 May 2014 23:55:06 +0200 Subject: common: change mp_snprintf_append semantics Make it more suitable for chaining. This means a function formatting a value to a string using a static buffer can work exactly like mp_snprintf_append itself. Also rename it to mp_snprintf_cat, because that's shorter. --- common/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/common.h') diff --git a/common/common.h b/common/common.h index f7362152c2..564d1f3ea0 100644 --- a/common/common.h +++ b/common/common.h @@ -77,7 +77,7 @@ struct mp_rect { void mp_rect_union(struct mp_rect *rc, const struct mp_rect *src); bool mp_rect_intersection(struct mp_rect *rc, const struct mp_rect *rc2); -int mp_snprintf_append(char *str, size_t size, const char *format, ...) +int mp_snprintf_cat(char *str, size_t size, const char *format, ...) PRINTF_ATTRIBUTE(3, 4); struct bstr; -- cgit v1.2.3