ucx/utils.h

changeset 86
ecba8bdf9741
parent 70
88092b88ec00
child 110
53895e9a4bbb
--- 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__)
+
 /**
  * <code>va_list</code> version of ucx_asprintf().
  * 

mercurial