rindex.c revision 89857
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
1533965Sjdpextern char *strrchr ();
1633965Sjdp
1733965Sjdpchar *
1833965Sjdprindex (s, c)
1933965Sjdp  char *s;
2033965Sjdp  int c;
2133965Sjdp{
2233965Sjdp  return strrchr (s, c);
2333965Sjdp}
24