Changeset 740 for vendor/current/lib/talloc/talloc.3.xml
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/lib/talloc/talloc.3.xml
r414 r740 11 11 </refnamediv> 12 12 <refsynopsisdiv> 13 <synopsis>#include <talloc /talloc.h></synopsis>13 <synopsis>#include <talloc.h></synopsis> 14 14 </refsynopsisdiv> 15 15 <refsect1><title>DESCRIPTION</title> … … 363 363 <para> 364 364 This is a utility macro that creates a new memory context hanging 365 off an exi ting context, automatically naming it "talloc_new:365 off an existing context, automatically naming it "talloc_new: 366 366 __location__" where __location__ is the source line it is called 367 367 from. It is particularly useful for creating a new temporary … … 646 646 <programlisting>talloc_set_name_const(ptr, ptr)</programlisting> 647 647 </refsect2> 648 <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>649 <para> 650 The talloc_ append_string() function appends the given formatted651 string to the given string.648 <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> 649 <para> 650 The talloc_vasprintf() function is the talloc equivalent of the C 651 library function vasprintf(3). 652 652 </para> 653 653 <para> … … 657 657 <programlisting>talloc_set_name_const(ptr, ptr)</programlisting> 658 658 </refsect2> 659 <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> 660 <para> 661 The talloc_vasprintf() function is the talloc equivalent of the C 662 library function vasprintf(3). 659 <refsect2><title>char *talloc_asprintf(const void *<emphasis role="italic">t</emphasis>, const char *<emphasis role="italic">fmt</emphasis>, ...);</title> 660 <para> 661 The talloc_asprintf() function is the talloc equivalent of the C 662 library function asprintf(3). 663 </para> 664 <para> 665 This function sets the name of the new pointer to the passed 666 string. This is equivalent to: 667 </para> 668 <programlisting>talloc_set_name_const(ptr, ptr)</programlisting> 669 </refsect2> 670 <refsect2><title>char *talloc_asprintf_append(char *s, const char *fmt, ...);</title> 671 <para> 672 The talloc_asprintf_append() function appends the given formatted 673 string to the given string. 663 674 </para> 664 675 <para> … … 668 679 <programlisting>talloc_set_name_const(ptr, ptr)</programlisting> 669 680 </refsect2> 670 <refsect2><title>char *talloc_asprintf(const void *<emphasis role="italic">t</emphasis>, const char *<emphasis role="italic">fmt</emphasis>, ...);</title> 671 <para> 672 The talloc_asprintf() function is the talloc equivalent of the C 673 library function asprintf(3). 674 </para> 675 <para> 676 This function sets the name of the new pointer to the passed 677 string. This is equivalent to: 678 </para> 679 <programlisting>talloc_set_name_const(ptr, ptr)</programlisting> 680 </refsect2> 681 <refsect2><title>char *talloc_asprintf_append(char *s, const char *fmt, ...);</title> 682 <para> 683 The talloc_asprintf_append() function appends the given formatted 684 string to the given string. 685 </para> 686 <para> 687 This function sets the name of the new pointer to the new 688 string. This is equivalent to: 689 </para> 690 <programlisting>talloc_set_name_const(ptr, ptr)</programlisting> 691 </refsect2> 692 <refsect2><title>(type *)talloc_array(const void *ctx, type, uint_t count);</title> 681 <refsect2><title>(type *)talloc_array(const void *ctx, type, unsigned int count);</title> 693 682 <para> 694 683 The talloc_array() macro is equivalent to: … … 700 689 </para> 701 690 </refsect2> 702 <refsect2><title>void *talloc_array_size(const void *ctx, size_t size, u int_t count);</title>691 <refsect2><title>void *talloc_array_size(const void *ctx, size_t size, unsigned int count);</title> 703 692 <para> 704 693 The talloc_array_size() function is useful when the type is not … … 707 696 </para> 708 697 </refsect2> 709 <refsect2><title>(typeof(ptr)) talloc_array_ptrtype(const void *ctx, ptr, u int_t count);</title>698 <refsect2><title>(typeof(ptr)) talloc_array_ptrtype(const void *ctx, ptr, unsigned int count);</title> 710 699 <para> 711 700 The talloc_ptrtype() macro should be used when you have a pointer to an array
Note:
See TracChangeset
for help on using the changeset viewer.