summaryrefslogtreecommitdiffstats
path: root/mprintf.h
diff options
context:
space:
mode:
Diffstat (limited to 'mprintf.h')
-rw-r--r--mprintf.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/mprintf.h b/mprintf.h
new file mode 100644
index 0000000..4d01be0
--- /dev/null
+++ b/mprintf.h
@@ -0,0 +1,12 @@
+#ifndef REPREPRO_MPRINTF
+#define REPREPRO_MPRINTF
+
+#include <stdarg.h>
+
+/* This is just a asprintf-wrapper to be more easily used
+ * and alwasy returns NULL on error */
+
+/*@null@*/char * mprintf(const char *, ...) __attribute__ ((format (printf, 1, 2)));
+/*@null@*/char * vmprintf(const char *, va_list);
+
+#endif