about summary refs log tree commit diff
path: root/include/wchar.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/wchar.h')
-rw-r--r--include/wchar.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/wchar.h b/include/wchar.h
index 7187d76c05..ee12563e99 100644
--- a/include/wchar.h
+++ b/include/wchar.h
@@ -3,10 +3,13 @@
 
 # ifdef _WCHAR_H
 /* Now define the internal interfaces.  */
-extern int __wcscasecmp (__const wchar_t *__s1, __const wchar_t *__s2);
+extern int __wcscasecmp (__const wchar_t *__s1, __const wchar_t *__s2)
+     __attribute_pure__;
 extern int __wcsncasecmp (__const wchar_t *__s1, __const wchar_t *__s2,
-			  size_t __n);
-extern size_t __wcsnlen (__const wchar_t *__s, size_t __maxlen);
+			  size_t __n)
+     __attribute_pure__;
+extern size_t __wcsnlen (__const wchar_t *__s, size_t __maxlen)
+     __attribute_pure__;
 extern wint_t __btowc (int __c);
 extern int __mbsinit (__const __mbstate_t *__ps);
 extern size_t __mbrtowc (wchar_t *__restrict __pwc,
@@ -37,7 +40,8 @@ extern wchar_t *__wmempcpy (wchar_t *__restrict __s1,
 			    size_t __n);
 extern wchar_t *__wmemmove (wchar_t *__s1, __const wchar_t *__s2,
 			    size_t __n);
-extern wchar_t *__wcschrnul (__const wchar_t *__s, wchar_t __wc);
+extern wchar_t *__wcschrnul (__const wchar_t *__s, wchar_t __wc)
+     __attribute_pure__;
 
 extern int __vfwscanf (FILE *__restrict __s,
 		       __const wchar_t *__restrict __format,