diff options
author | Roland McGrath <roland@gnu.org> | 1999-10-04 05:13:05 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1999-10-04 05:13:05 +0000 |
commit | ca74785646503695c49b592aa7dac8f27b3567fe (patch) | |
tree | 7a4f8ad087d52ecf3970d12701916400f17cbf9d /string/string.h | |
parent | Update. (diff) | |
download | glibc-ca74785646503695c49b592aa7dac8f27b3567fe.tar.gz glibc-ca74785646503695c49b592aa7dac8f27b3567fe.tar.bz2 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/string.h')
-rw-r--r-- | string/string.h | 4 |
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 |