]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/sizeof.h: memberof(): Add macro
authorAlejandro Colomar <alx@kernel.org>
Sun, 18 Feb 2024 17:32:31 +0000 (18:32 +0100)
committerAlejandro Colomar <alx@kernel.org>
Tue, 20 Feb 2024 17:53:53 +0000 (18:53 +0100)
commit544709fad3b2dd05f22414c1b70be53e6a3504f1
treed2375e48c6879e11e89f9ae4abf2f8d14ea8489a
parent8d1f0bcf99f1487f8c3eb54d65e0654f7e3f0264
lib/sizeof.h: memberof(): Add macro

This macro is useful to get the size of a member of a structure
without having a variable of that type.

Reviewed-by: Iker Pedrosa <ipedrosa@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/sizeof.h