diff -r 0ab1cf261a44 -r ecba8bdf9741 ucx/utils.h --- a/ucx/utils.h Sat Apr 04 17:44:33 2015 +0200 +++ b/ucx/utils.h Sat Apr 04 19:05:09 2015 +0200 @@ -219,6 +219,10 @@ */ sstr_t ucx_asprintf(UcxAllocator *allocator, const char *fmt, ...); +/** Shortcut for ucx_asprintf() with default allocator. */ +#define ucx_sprintf(fmt, ...) \ + ucx_asprintf(ucx_default_allocator(), fmt, __VA_ARGS__) + /** * va_list version of ucx_asprintf(). *