From 3c2b7777ed5e1b873b98eb3d9e424308936ca17b Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Thu, 3 Jan 2002 05:25:30 +0000 Subject: Add talloc_asprintf_append, which grows an existing string buffer to contain new print-formatted information. (Also talloc_vasprintf_append.) Idea borrowed from glib. (This used to be commit 53723e874885936dd67483ebf46601fc73489d17) --- source3/include/talloc.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3/include/talloc.h') diff --git a/source3/include/talloc.h b/source3/include/talloc.h index d8a98f07e6..3f5b85c0b2 100644 --- a/source3/include/talloc.h +++ b/source3/include/talloc.h @@ -41,6 +41,12 @@ char *talloc_vasprintf(TALLOC_CTX *t, const char *fmt, va_list ap) char *talloc_asprintf(TALLOC_CTX *t, const char *fmt, ...) PRINTF_ATTRIBUTE(2, 3); +char *talloc_vasprintf_append(TALLOC_CTX *t, char *, const char *, va_list ap) + PRINTF_ATTRIBUTE(3, 0); + +char *talloc_asprintf_append(TALLOC_CTX *t, char *, const char *, ...) + PRINTF_ATTRIBUTE(3, 4); + /** @} */ #endif /* ndef _TALLOC_H_ */ -- cgit