X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fvchar.hpp;h=541bb92fab468585967de0211a7963301999f412;hb=6139acf5af6c33a6ca858306e7abd97e0ee4104f;hp=1cc45b44455861952ab400918b3ab2a562d0237a;hpb=17690735658d7b44f91579df91e31da9ae185158;p=awesomized%2Flibmemcached diff --git a/libtest/vchar.hpp b/libtest/vchar.hpp index 1cc45b44..541bb92f 100644 --- a/libtest/vchar.hpp +++ b/libtest/vchar.hpp @@ -44,6 +44,8 @@ namespace libtest { +int random_alpha_num(void); + typedef std::vector vchar_ptr_t; typedef std::vector vchar_t; @@ -61,6 +63,7 @@ void append(libtest::vchar_t& arg, const char*); } // namespace vchar #define vchar_param(__arg) (&__arg[0]), (__arg.size()) +#define vchar_printf(__arg) int(__arg.size()), (&__arg[0]) std::ostream& operator<<(std::ostream& output, const libtest::vchar_t& arg);