X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=util%2Fstring.hpp;h=9f6786985f843631344fcd0b4ff04930c7df71a6;hb=462de46ceddc9846bbefe91dca9915c5c538308d;hp=873551e5f39539e278cc6c5c658b4db7eb50f57b;hpb=fddf0928bfebaa0ff1535c0973cfabf5e001e72d;p=awesomized%2Flibmemcached diff --git a/util/string.hpp b/util/string.hpp index 873551e5..9f678698 100644 --- a/util/string.hpp +++ b/util/string.hpp @@ -51,5 +51,7 @@ #define util_string_make_from_cstr(X) (X), ((X) ? strlen(X) : 0) +#define util_string_make_from_array(__array) (__array), (strlen(__array)) + #define util_array_length(__array) sizeof(__array)/sizeof(&__array)