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