diff options
author | Martin Pool <mbp@samba.org> | 2002-01-03 05:25:30 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2002-01-03 05:25:30 +0000 |
commit | 3c2b7777ed5e1b873b98eb3d9e424308936ca17b (patch) | |
tree | dab9715807ce96a5013eddb4c17f63882119d5b8 /source3/include | |
parent | 9c409a9e397fad052606d7416cbb70f077d52cfd (diff) | |
download | samba-3c2b7777ed5e1b873b98eb3d9e424308936ca17b.tar.gz samba-3c2b7777ed5e1b873b98eb3d9e424308936ca17b.tar.bz2 samba-3c2b7777ed5e1b873b98eb3d9e424308936ca17b.zip |
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)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/talloc.h | 6 |
1 files changed, 6 insertions, 0 deletions
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_ */ |