re PR c/54428 (ICE in gimplify_expr, at gimplify.c:7591)
[official-gcc.git] / libiberty / rindex.c
blob194ef9fad7861a60e7789023318e4d59413293ff
1 /* Stub implementation of (obsolete) rindex(). */
3 /*
5 @deftypefn Supplemental char* rindex (const char *@var{s}, int @var{c})
7 Returns a pointer to the last occurrence of the character @var{c} in
8 the string @var{s}, or @code{NULL} if not found. The use of @code{rindex} is
9 deprecated in new programs in favor of @code{strrchr}.
11 @end deftypefn
15 extern char *strrchr (const char *, int);
17 char *
18 rindex (const char *s, int c)
20 return strrchr (s, c);