]> git.ozlabs.org Git - ccan/commit
container_of: add container_off() helper.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 30 Nov 2011 03:02:06 +0000 (13:32 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 30 Nov 2011 03:02:06 +0000 (13:32 +1030)
commit6b0157ffdd333a7e2af9738551df4fbf2eca73db
treefc769702cb3e0929a34966b1c76f63a8e8231f02
parent1a257af99ba593db0bd196efb43b611e8e67e312
container_of: add container_off() helper.

Just like container_of() (with typechecking, etc), but return the offset
to the enclosing structure.
ccan/container_of/container_of.h
ccan/container_of/test/run.c