--- a/src/str.h Sun Apr 12 17:18:06 2009 +0300
+++ b/src/str.h Sun Apr 12 17:42:34 2009 +0300
@@ -7,6 +7,7 @@
* Miscellaneous string utility functions
*/
#include <sys/types.h>
+#include <stdarg.h>
#include "error.h"
/**
@@ -52,6 +53,13 @@
size_t str_append_fmt (char *buf, size_t buf_size, const char *fmt, ...);
/**
+ * Like str_append_fmt, but using a vargs list instead.
+ *
+ * @see str_append_fmt()
+ */
+size_t str_append_fmt_va (char *buf, size_t buf_size, const char *fmt, va_list vargs);
+
+/**
* Use str_append* to write out the quoted char value to the given buffer.
*/
size_t str_quote_char (char *buf, size_t buf_size, char c);