mirror of
https://github.com/samba-team/samba.git
synced 2025-07-30 19:42:05 +03:00
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 53723e8748
)
This commit is contained in:
@ -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_ */
|
||||
|
Reference in New Issue
Block a user