aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index c95cc5448..405d289a3 100644
--- a/src/util.h
+++ b/src/util.h
@@ -186,7 +186,7 @@ void g_queue_clear (GQueue *queue);
#endif
-/*
+/**
* Copy src to dest limited to len, in compare with standart strlcpy(3) rspamd strlcpy does not
* traverse the whole string and it is possible to use it for non NULL terminated strings. This is
* more like memccpy(dst, src, size, '\0')
@@ -198,6 +198,15 @@ void g_queue_clear (GQueue *queue);
*/
gsize rspamd_strlcpy (gchar *dst, const gchar *src, gsize siz);
+/**
+ * Lowercase strlcpy variant
+ * @param dst
+ * @param src
+ * @param siz
+ * @return
+ */
+gsize rspamd_strlcpy_tolower (gchar *dst, const gchar *src, gsize siz);
+
/*
* Strip <> from email address
*/