diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-05-08 11:12:11 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:21:54 -0500 |
commit | dcc2fe7cb61937aa191bf8b5f353d0308a8011a3 (patch) | |
tree | 3b440ec7002a0f9acf9055201d6e6e8722109876 /source3/lib/talloc/talloc.3.xml | |
parent | 87d18ac48853e1d63d127b03ea6dbc7568e334f4 (diff) | |
download | samba-dcc2fe7cb61937aa191bf8b5f353d0308a8011a3.tar.gz samba-dcc2fe7cb61937aa191bf8b5f353d0308a8011a3.tar.bz2 samba-dcc2fe7cb61937aa191bf8b5f353d0308a8011a3.zip |
r22759: sync lib/talloc with samba4
metze
(This used to be commit 86c510e3198e03ed6efa61b27530bbb008f6802b)
Diffstat (limited to 'source3/lib/talloc/talloc.3.xml')
-rw-r--r-- | source3/lib/talloc/talloc.3.xml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/source3/lib/talloc/talloc.3.xml b/source3/lib/talloc/talloc.3.xml index 2400fef2dc..83ca67a495 100644 --- a/source3/lib/talloc/talloc.3.xml +++ b/source3/lib/talloc/talloc.3.xml @@ -583,11 +583,27 @@ if (ptr) memcpy(ptr, p, strlen(p)+1);</programlisting> </para> <programlisting>talloc_set_name_const(ptr, ptr)</programlisting> </refsect2> + <refsect2><title>char *talloc_append_string(const void *<emphasis role="italic">t</emphasis>, char *<emphasis role="italic">orig</emphasis>, const char *<emphasis role="italic">append</emphasis>);</title> + <para> + The talloc_append_string() function appends the given formatted + string to the given string. + </para> + <para> + This function sets the name of the new pointer to the new + string. This is equivalent to: + </para> + <programlisting>talloc_set_name_const(ptr, ptr)</programlisting> + </refsect2> <refsect2><title>char *talloc_vasprintf(const void *<emphasis role="italic">t</emphasis>, const char *<emphasis role="italic">fmt</emphasis>, va_list <emphasis role="italic">ap</emphasis>);</title> <para> The talloc_vasprintf() function is the talloc equivalent of the C library function vasprintf(3). </para> + <para> + This function sets the name of the new pointer to the new + string. This is equivalent to: + </para> + <programlisting>talloc_set_name_const(ptr, ptr)</programlisting> </refsect2> <refsect2><title>char *talloc_asprintf(const void *<emphasis role="italic">t</emphasis>, const char *<emphasis role="italic">fmt</emphasis>, ...);</title> <para> @@ -605,6 +621,11 @@ if (ptr) memcpy(ptr, p, strlen(p)+1);</programlisting> The talloc_asprintf_append() function appends the given formatted string to the given string. </para> + <para> + This function sets the name of the new pointer to the new + string. This is equivalent to: + </para> + <programlisting>talloc_set_name_const(ptr, ptr)</programlisting> </refsect2> <refsect2><title>(type *)talloc_array(const void *ctx, type, uint_t count);</title> <para> |