diff options
| author | Andrew Tridgell <tridge@samba.org> | 2007-07-10 15:46:05 +1000 |
|---|---|---|
| committer | Andrew Tridgell <tridge@samba.org> | 2007-07-10 15:46:05 +1000 |
| commit | a4c96397f59232219ddc1c79333093c2fcbbd2ef (patch) | |
| tree | 02e18506e25b49149328fcdc73b0a0371c5018da /ctdb/lib/talloc/talloc.3.xml | |
| parent | a78752eae42134cb54d67db6ec9b8a4cd9103ab4 (diff) | |
| download | samba-a4c96397f59232219ddc1c79333093c2fcbbd2ef.tar.gz samba-a4c96397f59232219ddc1c79333093c2fcbbd2ef.tar.xz samba-a4c96397f59232219ddc1c79333093c2fcbbd2ef.zip | |
more merges for GPLv3 update
(This used to be ctdb commit b7be4ee6c9a670cdf148fd36b092c3991a554964)
Diffstat (limited to 'ctdb/lib/talloc/talloc.3.xml')
| -rw-r--r-- | ctdb/lib/talloc/talloc.3.xml | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/ctdb/lib/talloc/talloc.3.xml b/ctdb/lib/talloc/talloc.3.xml index 41b748b4ba..67de15bfc8 100644 --- a/ctdb/lib/talloc/talloc.3.xml +++ b/ctdb/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> @@ -711,8 +732,7 @@ if (ptr) memcpy(ptr, p, strlen(p)+1);</programlisting> </para> <para> You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + along with this program; if not, see http://www.gnu.org/licenses/. </para> </refsect1> </refentry> |
