about summary refs log tree commit diff
path: root/string/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'string/string.h')
-rw-r--r--string/string.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/string/string.h b/string/string.h
index 766913a620..6c913a85c6 100644
--- a/string/string.h
+++ b/string/string.h
@@ -147,6 +147,12 @@ extern char *strchr __P ((__const char *__s, int __c));
 /* Find the last occurrence of C in S.  */
 extern char *strrchr __P ((__const char *__s, int __c));
 
+#ifdef __USE_GNU
+/* This funciton is similar to `strchr'.  But it returns a pointer to
+   the closing NUL byte in case C is not found in S.  */
+extern char *strchrnul __P ((__const char *__s, int __c));
+#endif
+
 /* Return the length of the initial segment of S which
    consists entirely of characters not in REJECT.  */
 extern size_t strcspn __P ((__const char *__s, __const char *__reject));