From 3c56f697e112c79fb5457538fdc373e348beca24 Mon Sep 17 00:00:00 2001 From: Andrew Hsieh Date: Thu, 8 Nov 2012 09:43:39 -0800 Subject: Initial checkin of unmodified gcc-5666.3.tar.gz This is the source to build gcc-4.2 for MacOSX gcc version 4.2.1 (Apple Inc. build 5666) (dot 3) http://opensource.apple.com/tarballs/gcc/gcc-5666.3.tar.gz Change-Id: I69540223f018e9d07f861fca04bd3833fc138f8b --- gcc-4.2.1-5666.3/libiberty/rindex.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 gcc-4.2.1-5666.3/libiberty/rindex.c (limited to 'gcc-4.2.1-5666.3/libiberty/rindex.c') diff --git a/gcc-4.2.1-5666.3/libiberty/rindex.c b/gcc-4.2.1-5666.3/libiberty/rindex.c new file mode 100644 index 000000000..194ef9fad --- /dev/null +++ b/gcc-4.2.1-5666.3/libiberty/rindex.c @@ -0,0 +1,21 @@ +/* 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); +} -- cgit v1.2.3