1
0
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:
Martin Pool
2002-01-03 05:25:30 +00:00
parent 9c409a9e39
commit 3c2b7777ed
2 changed files with 82 additions and 4 deletions

View File

@ -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_ */