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

TALLOC_CTX* talloc_init ( void   ) 

Create a new talloc context.

Definition at line 120 of file talloc.c.

References talloc_enroll().

Referenced by talloc_init_named().

{
      TALLOC_CTX *t;

      t = (TALLOC_CTX *)malloc(sizeof(TALLOC_CTX));
      if (t) {
            t->list = NULL;
            t->total_alloc_size = 0;
            t->name = NULL;
            talloc_enroll(t);
      }

      return t;
}


Generated by  Doxygen 1.6.0   Back to index