1*c5dff60aSchristos /* Stub implementation of (obsolete) rindex(). */ 2*c5dff60aSchristos 3*c5dff60aSchristos /* 4*c5dff60aSchristos 5*c5dff60aSchristos @deftypefn Supplemental char* rindex (const char *@var{s}, int @var{c}) 6*c5dff60aSchristos 7*c5dff60aSchristos Returns a pointer to the last occurrence of the character @var{c} in 8*c5dff60aSchristos the string @var{s}, or @code{NULL} if not found. The use of @code{rindex} is 9*c5dff60aSchristos deprecated in new programs in favor of @code{strrchr}. 10*c5dff60aSchristos 11*c5dff60aSchristos @end deftypefn 12*c5dff60aSchristos 13*c5dff60aSchristos */ 14*c5dff60aSchristos 15*c5dff60aSchristos extern char *strrchr (const char *, int); 16*c5dff60aSchristos 17*c5dff60aSchristos char * rindex(const char * s,int c)18*c5dff60aSchristosrindex (const char *s, int c) 19*c5dff60aSchristos { 20*c5dff60aSchristos return strrchr (s, c); 21*c5dff60aSchristos } 22