summaryrefslogtreecommitdiff
path: root/lib/talloc/talloc.h
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2012-04-20 14:29:59 +0200
committerVolker Lendecke <vl@samba.org>2012-04-24 13:28:34 +0200
commit9a474717b8a629fc96c85217290212dca4011f71 (patch)
treef299b5e94005b768a1ea212e0b5e64ae614edccb /lib/talloc/talloc.h
parent0d5d45c2dffbe6f630ecc8d6cab8501dc3e07214 (diff)
downloadsamba-9a474717b8a629fc96c85217290212dca4011f71.tar.gz
samba-9a474717b8a629fc96c85217290212dca4011f71.tar.bz2
samba-9a474717b8a629fc96c85217290212dca4011f71.zip
Talloc doc: when s == NULL in _append functions
Diffstat (limited to 'lib/talloc/talloc.h')
-rw-r--r--lib/talloc/talloc.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/talloc/talloc.h b/lib/talloc/talloc.h
index ebd2ab5d0a..3e2e9ecc60 100644
--- a/lib/talloc/talloc.h
+++ b/lib/talloc/talloc.h
@@ -1311,6 +1311,8 @@ char *talloc_strdup(const void *t, const char *p);
* talloc_set_name_const(ptr, ptr)
* @endcode
*
+ * If <code>s == NULL</code> then new context is created.
+ *
* @param[in] s The destination to append to.
*
* @param[in] a The string you want to append.
@@ -1344,6 +1346,8 @@ char *talloc_strdup_append(char *s, const char *a);
* printf("%s\n", buf); // hello (buf = "hello\0world, hello")
* @endcode
*
+ * If <code>s == NULL</code> then new context is created.
+ *
* @param[in] s The destination buffer to append to.
*
* @param[in] a The string you want to append.
@@ -1391,6 +1395,8 @@ char *talloc_strndup(const void *t, const char *p, size_t n);
* talloc_set_name_const(ptr, ptr)
* @endcode
*
+ * If <code>s == NULL</code> then new context is created.
+ *
* @param[in] s The destination string to append to.
*
* @param[in] a The source string you want to append.
@@ -1427,6 +1433,8 @@ char *talloc_strndup_append(char *s, const char *a, size_t n);
* printf("%s\n", buf); // hello (buf = "hello\0world, hello")
* @endcode
*
+ * If <code>s == NULL</code> then new context is created.
+ *
* @param[in] s The destination buffer to append to.
*
* @param[in] a The source string you want to append.
@@ -1533,6 +1541,8 @@ char *talloc_asprintf(const void *t, const char *fmt, ...) PRINTF_ATTRIBUTE(2,3)
* talloc_set_name_const(ptr, ptr)
* @endcode
*
+ * If <code>s == NULL</code> then new context is created.
+ *
* @param[in] s The string to append to.
*
* @param[in] fmt The format string.
@@ -1565,6 +1575,8 @@ char *talloc_asprintf_append(char *s, const char *fmt, ...) PRINTF_ATTRIBUTE(2,3
* printf("%s\n", buf); // hello (buf = "hello\0world, hello")
* @endcode
*
+ * If <code>s == NULL</code> then new context is created.
+ *
* @param[in] s The string to append to
*
* @param[in] fmt The format string.