summaryrefslogtreecommitdiffstats
path: root/src/libutil/str_util.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-10-20 10:38:34 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-10-20 10:38:34 +0100
commit28f764b3b367a7e97481fe66b19a11cac5403b09 (patch)
treef00b8e12d3ffd9177eacbef09b9863cc9cd5ac71 /src/libutil/str_util.h
parent9d0e80ddbb913c85aee524a2c33a25493c4344b5 (diff)
downloadrspamd-28f764b3b367a7e97481fe66b19a11cac5403b09.tar.gz
rspamd-28f764b3b367a7e97481fe66b19a11cac5403b09.zip
[Minor] Add helper to convert a string to a uint64 number
Diffstat (limited to 'src/libutil/str_util.h')
-rw-r--r--src/libutil/str_util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libutil/str_util.h b/src/libutil/str_util.h
index e5e4cfb76..b08dd56ad 100644
--- a/src/libutil/str_util.h
+++ b/src/libutil/str_util.h
@@ -141,6 +141,7 @@ gboolean rspamd_strtol (const gchar *s, gsize len, glong *value);
* Try to convert a string of length to unsigned long
*/
gboolean rspamd_strtoul (const gchar *s, gsize len, gulong *value);
+gboolean rspamd_strtou64 (const gchar *s, gsize len, guint64 *value);
/*
* Try to convert a hex string of length to unsigned long