]> git.ipfire.org Git - thirdparty/lxc.git/commit
macro: add STRLITERALLEN() and STRARRAYLEN()
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 22 Sep 2018 09:14:08 +0000 (11:14 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 23 Sep 2018 10:56:13 +0000 (12:56 +0200)
commit36dee4a2b6512e4564dfc87e9b5819c070f04378
treeed2c0817fbc7e1573a2d38f737482c9d0a1cfcc1
parentb857f4be4ffd07751b1646e52f9d3a11d92b5088
macro: add STRLITERALLEN() and STRARRAYLEN()

sizeof() implementation for string literals and string arrays that makes
it behave like strlen() for strings.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/macro.h