aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/fstring.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/fstring.h')
-rw-r--r--src/libutil/fstring.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/fstring.h b/src/libutil/fstring.h
index db8b49085..0bd9a271d 100644
--- a/src/libutil/fstring.h
+++ b/src/libutil/fstring.h
@@ -81,6 +81,8 @@ rspamd_fstring_t *rspamd_fstring_append_chars (rspamd_fstring_t *str,
*/
void rspamd_fstring_erase (rspamd_fstring_t *str, gsize pos, gsize len);
+#define rspamd_fstring_clear(s) rspamd_fstring_erase(s, 0, s->len)
+
/**
* Convert fixed string to a zero terminated string. This string should be
* freed by a caller