core: add macro STRLEN

System Internals / NetworkManager - Thomas Haller [redhat.com] - 3 April 2014 03:55 UTC

Returns the length of a string at compile time. Contrary to strlen(), which is a run time expression -- even if the compler might be able to optimize strlen() for string constants.

a72079a core: add macro STRLEN
src/NetworkManagerUtils.h | 3 +++
1 file changed, 3 insertions(+)

Upstream: cgit.freedesktop.org


  • Share