2004-10-28 17:57:26 +00:00
|
|
|
/* Stub implementation of (obsolete) rindex(). */
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
@deftypefn Supplemental char* rindex (const char *@var{s}, int @var{c})
|
|
|
|
|
|
|
|
Returns a pointer to the last occurrence of the character @var{c} in
|
|
|
|
the string @var{s}, or @code{NULL} if not found. The use of @code{rindex} is
|
|
|
|
deprecated in new programs in favor of @code{strrchr}.
|
|
|
|
|
|
|
|
@end deftypefn
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2007-02-21 21:17:52 +00:00
|
|
|
extern char *strrchr (const char *, int);
|
2004-10-28 17:57:26 +00:00
|
|
|
|
|
|
|
char *
|
2007-02-21 21:17:52 +00:00
|
|
|
rindex (const char *s, int c)
|
2004-10-28 17:57:26 +00:00
|
|
|
{
|
|
|
|
return strrchr (s, c);
|
|
|
|
}
|