Add talloc_memdup_type
commit851228f2bfeffd5989e3a75809489bc9e16d9499
authorSam Liddicott <sam@liddicott.com>
Mon, 3 Nov 2008 15:56:30 +0000 (3 15:56 +0000)
committerSam Liddicott <sam@liddicott.com>
Wed, 10 Dec 2008 10:10:50 +0000 (10 10:10 +0000)
tree6e868eba3b10f4841cc8935932fc221b2d1c0406
parent2500a037679b783a89a8cc93733508e2b84be4e7
Add talloc_memdup_type

talloc_memdup is all very fine, but is useless for cloning structs
that are type-checked using talloc_get_type.

talloc_memdup_type is like talloc_memdup except it set the name
on the new allocation to be the type.
lib/talloc/talloc.h