Back to index

cell-binutils  2.17cvs20070401
rindex.c
Go to the documentation of this file.
00001 /* Stub implementation of (obsolete) rindex(). */
00002 
00003 /*
00004 
00005 @deftypefn Supplemental char* rindex (const char *@var{s}, int @var{c})
00006 
00007 Returns a pointer to the last occurrence of the character @var{c} in
00008 the string @var{s}, or @code{NULL} if not found.  The use of @code{rindex} is
00009 deprecated in new programs in favor of @code{strrchr}.
00010 
00011 @end deftypefn
00012 
00013 */
00014 
00015 extern char *strrchr (const char *, int);
00016 
00017 char *
00018 rindex (const char *s, int c)
00019 {
00020   return strrchr (s, c);
00021 }