aboutsummaryrefslogtreecommitdiffstats
path: root/src/string_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/string_util.h')
-rw-r--r--src/string_util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/string_util.h b/src/string_util.h
index 374fd0f91..62de53873 100644
--- a/src/string_util.h
+++ b/src/string_util.h
@@ -83,6 +83,14 @@ strchug_fast(char *p)
bool
string_array_contains(const char *const* haystack, const char *needle);
+#ifndef HAVE_STRNLEN
+
+gcc_pure
+size_t
+strnlen(const char *s, size_t max);
+
+#endif
+
#if !defined(HAVE_STRNDUP)
/**