Logo Search packages:      
Sourcecode: samba-doc-ja version File versions

TALLOC_CTX* talloc_init_named ( char const *  fmt,
  ... 
)

Create a new talloc context, with a name specifying its purpose. Please call this in preference to talloc_init().

Definition at line 141 of file talloc.c.

References talloc_init().

Referenced by winbindd_lookup_name_by_sid().

{
      TALLOC_CTX *t;
      va_list ap;

      t = talloc_init();
      if (t && fmt) {
            va_start(ap, fmt);
            t->name = talloc_vasprintf(t, fmt, ap);
            va_end(ap);
      }
      
      return t;
}


Generated by  Doxygen 1.6.0   Back to index