glong r;
va_start (args, fmt);
- r = rspamd_vprintf_common (rspamd_printf_append_gstring, s, fmt, args);
+ r = rspamd_vprintf_gstring (s, fmt, args);
va_end (args);
return r;
}
+glong
+rspamd_vprintf_gstring (GString *s, const gchar *fmt, va_list args)
+{
+ return rspamd_vprintf_common (rspamd_printf_append_gstring, s, fmt, args);
+}
+
#define RSPAMD_PRINTF_APPEND(buf, len) \
do { \
RSPAMD_PRINTF_APPEND_BUF(buf, len); \
gchar * rspamd_vsnprintf (gchar *buf, glong max, const gchar *fmt,
va_list args);
glong rspamd_printf_gstring (GString *s, const gchar *fmt, ...);
+glong rspamd_vprintf_gstring (GString *s, const gchar *fmt, va_list args);
glong rspamd_vprintf_common (rspamd_printf_append_func func,
gpointer apd,