aboutsummaryrefslogtreecommitdiff
path: root/manual
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 /manual
parentc8f3e6db60f54ef53c5b68fcc4cbe060fff41741 (diff)
downloadglibc-ca74785646503695c49b592aa7dac8f27b3567fe.tar
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 'manual')
-rw-r--r--manual/string.texi7
1 files changed, 7 insertions, 0 deletions
diff --git a/manual/string.texi b/manual/string.texi
index a151ddd48c..2d28dd2e47 100644
--- a/manual/string.texi
+++ b/manual/string.texi
@@ -1063,6 +1063,13 @@ located byte, or a null pointer if no match was found.
@end deftypefun
@comment string.h
+@comment GNU
+@deftypefun {void *} memrchr (const void *@var{block}, int @var{c}, size_t @var{size})
+The function @code{memrchr} is like @code{memchr}, except that it searches
+backwards from the end of the block defined by @var{block} and @var{size}
+(instead of forwards from the front).
+
+@comment string.h
@comment ISO
@deftypefun {char *} strchr (const char *@var{string}, int @var{c})
The @code{strchr} function finds the first occurrence of the character