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

void* talloc_memdup ( TALLOC_CTX t,
const void *  p,
size_t  size 
)

memdup with a talloc.

Definition at line 271 of file talloc.c.

References talloc().

Referenced by talloc_strdup().

{
      void *newp = talloc(t,size);

      if (newp)
            memcpy(newp, p, size);

      return newp;
}


Generated by  Doxygen 1.6.0   Back to index