tal: add tal_count() and length properties for arrays.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 3 Dec 2012 08:59:39 +0000 (19:29 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 3 Dec 2012 08:59:39 +0000 (19:29 +1030)
commit83c75170a2be2e3fa58a139f866e957aa6b82995
treee79f22afe86660d51375ed307bacc75f742293c2
parent9a1441141e6fdb84e9c067b6d6808e65e0da3627
tal: add tal_count() and length properties for arrays.

Unlike talloc, we don't have a count on everything, just on array
allocations.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/tal/tal.c
ccan/tal/tal.h
ccan/tal/test/run-count.c [new file with mode: 0644]