]> git.ozlabs.org Git - ccan/commit
tal: tal_dup()
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 21 Nov 2012 03:02:06 +0000 (13:32 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 21 Nov 2012 03:02:06 +0000 (13:32 +1030)
commit84b29c907c7608a024f65c4ef6803a1f5bb80ccd
treed8f1b25b81b7478eedb40b171e9d80d3adad3b2d
parent7ca46909f86e8bbad4e4bb19cac1a75d4ebf3df6
tal: tal_dup()

Sometimes you want to duplicate and enlarge in one step: particularly with
TAL_TAKE.  It's also typesafe, unlike tal_memdup().

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/tal/tal.c
ccan/tal/tal.h
ccan/tal/test/run-overflow.c
ccan/tal/test/run-string.c
ccan/tal/test/run-take.c