summaryrefslogtreecommitdiff
path: root/lib/c-strcase.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/c-strcase.h')
-rw-r--r--lib/c-strcase.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/c-strcase.h b/lib/c-strcase.h
index 1e3d45a85..5173cb27c 100644
--- a/lib/c-strcase.h
+++ b/lib/c-strcase.h
@@ -40,12 +40,13 @@ extern "C" {
/* Compare strings S1 and S2, ignoring case, returning less than, equal to or
greater than zero if S1 is lexicographically less than, equal to or greater
than S2. */
-extern int c_strcasecmp (const char *s1, const char *s2);
+extern int c_strcasecmp (const char *s1, const char *s2) _GL_ATTRIBUTE_PURE;
/* Compare no more than N characters of strings S1 and S2, ignoring case,
returning less than, equal to or greater than zero if S1 is
lexicographically less than, equal to or greater than S2. */
-extern int c_strncasecmp (const char *s1, const char *s2, size_t n);
+extern int c_strncasecmp (const char *s1, const char *s2, size_t n)
+ _GL_ATTRIBUTE_PURE;
#ifdef __cplusplus