133965Sjdp/* Stub implementation of (obsolete) rindex(). */
233965Sjdp
389857Sobrien/*
489857Sobrien
589857Sobrien@deftypefn Supplemental char* rindex (const char *@var{s}, int @var{c})
689857Sobrien
789857SobrienReturns a pointer to the last occurrence of the character @var{c} in
889857Sobrienthe string @var{s}, or @code{NULL} if not found.  The use of @code{rindex} is
989857Sobriendeprecated in new programs in favor of @code{strrchr}.
1089857Sobrien
1189857Sobrien@end deftypefn
1289857Sobrien
1389857Sobrien*/
1489857Sobrien
15218822Sdimextern char *strrchr (const char *, int);
1633965Sjdp
1733965Sjdpchar *
18218822Sdimrindex (const char *s, int c)
1933965Sjdp{
2033965Sjdp  return strrchr (s, c);
2133965Sjdp}
22