summaryrefslogtreecommitdiff
path: root/libiberty/rindex.c
diff options
context:
space:
mode:
Diffstat (limited to 'libiberty/rindex.c')
-rw-r--r--libiberty/rindex.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/libiberty/rindex.c b/libiberty/rindex.c
deleted file mode 100644
index 194ef9fad..000000000
--- a/libiberty/rindex.c
+++ /dev/null
@@ -1,21 +0,0 @@
-/* Stub implementation of (obsolete) rindex(). */
-
-/*
-
-@deftypefn Supplemental char* rindex (const char *@var{s}, int @var{c})
-
-Returns a pointer to the last occurrence of the character @var{c} in
-the string @var{s}, or @code{NULL} if not found. The use of @code{rindex} is
-deprecated in new programs in favor of @code{strrchr}.
-
-@end deftypefn
-
-*/
-
-extern char *strrchr (const char *, int);
-
-char *
-rindex (const char *s, int c)
-{
- return strrchr (s, c);
-}