about summary refs log tree commit diff
path: root/string
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-10-04 05:13:05 +0000
committerRoland McGrath <roland@gnu.org>1999-10-04 05:13:05 +0000
commitca74785646503695c49b592aa7dac8f27b3567fe (patch)
tree7a4f8ad087d52ecf3970d12701916400f17cbf9d /string
parentc8f3e6db60f54ef53c5b68fcc4cbe060fff41741 (diff)
downloadglibc-ca74785646503695c49b592aa7dac8f27b3567fe.tar.gz
glibc-ca74785646503695c49b592aa7dac8f27b3567fe.tar.xz
glibc-ca74785646503695c49b592aa7dac8f27b3567fe.zip
1999-10-04 Roland McGrath <roland@baalperazim.frob.com>
	* sysdeps/generic/memrchr.c: New file, adapted from memchr.c.
	* sysdeps/i386/bits/string.h (__memrchr): New function.
	* string/string.h: Declare memrchr, __memrchr.
	* manual/string.texi (Search Functions): Document memrchr.
Diffstat (limited to 'string')
-rw-r--r--string/string.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/string/string.h b/string/string.h
index 6c913a85c6..03cf103ad6 100644
--- a/string/string.h
+++ b/string/string.h
@@ -64,6 +64,10 @@ extern __ptr_t memchr __P ((__const __ptr_t __s, int __c, size_t __n));
 /* Search in S for C.  This is similar to `memchr' but there is no
    length limit.  */
 extern __ptr_t rawmemchr __P ((__const __ptr_t __s, int __c));
+
+/* Search N bytes of S for the final occurrence of C.  */
+extern __ptr_t __memrchr __P ((__const __ptr_t __s, int __c, size_t __n));
+extern __ptr_t memrchr __P ((__const __ptr_t __s, int __c, size_t __n));
 #endif