From ca74785646503695c49b592aa7dac8f27b3567fe Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 4 Oct 1999 05:13:05 +0000 Subject: 1999-10-04 Roland McGrath * 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. --- string/string.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'string') diff --git a/string/string.h b/string/string.h index 6c913a8..03cf103 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 -- cgit v1.1