summaryrefslogtreecommitdiff
path: root/source4/lib/talloc/talloc_guide.txt
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-09-14 17:40:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:06:44 -0500
commit151f422247e4f9a9645baf639adaf2dbd9557f13 (patch)
tree0dd652e7eeb08a399f601487ca31e25edb00b9c7 /source4/lib/talloc/talloc_guide.txt
parent803e57da44e826e1adbf5f9743633273285d30f7 (diff)
downloadsamba-151f422247e4f9a9645baf639adaf2dbd9557f13.tar.gz
samba-151f422247e4f9a9645baf639adaf2dbd9557f13.tar.bz2
samba-151f422247e4f9a9645baf639adaf2dbd9557f13.zip
r25164: Add talloc_asprintf_append_buffer() and the docs for it.
Jeremy. (This used to be commit 5bb8613b86a6788efde840d5b50710f9afd22fed)
Diffstat (limited to 'source4/lib/talloc/talloc_guide.txt')
-rw-r--r--source4/lib/talloc/talloc_guide.txt19
1 files changed, 17 insertions, 2 deletions
diff --git a/source4/lib/talloc/talloc_guide.txt b/source4/lib/talloc/talloc_guide.txt
index c4634ae19a..18663b370d 100644
--- a/source4/lib/talloc/talloc_guide.txt
+++ b/source4/lib/talloc/talloc_guide.txt
@@ -568,8 +568,23 @@ string. This is equivalent to:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
char *talloc_asprintf_append(char *s, const char *fmt, ...);
+The talloc_asprintf_append() function appends the given formatted
+string to the given string.
+Use this varient when the string in the current talloc buffer may
+have been truncated in length.
+
+This functions sets the name of the new pointer to the new
+string. This is equivalent to:
+ talloc_set_name_const(ptr, ptr)
+
+
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
+char *talloc_asprintf_append_buffer(char *s, const char *fmt, ...);
+
The talloc_asprintf_append() function appends the given formatted
-string to the given string.
+string to the end of the currently allocated talloc buffer.
+Use this varient when the string in the current talloc buffer has
+not been changed.
This functions sets the name of the new pointer to the new
string. This is equivalent to:
@@ -577,7 +592,7 @@ string. This is equivalent to:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-(type *)talloc_array(const void *ctx, type, uint_t count);
+((type *)talloc_array(const void *ctx, type, uint_t count);
The talloc_array() macro is equivalent to: