You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
437 B

/* Stub implementation of (obsolete) rindex(). */
25 years ago
/*
@deftypefn Supplemental char* rindex (const char *@var{s}, int @var{c})
25 years ago
Returns a pointer to the last occurrence of the character @var{c} in
25 years ago
the string @var{s}, or @code{NULL} if not found. The use of @code{rindex} is
25 years ago
deprecated in new programs in favor of @code{strrchr}.
@end deftypefn
*/
extern char *strrchr ();
char *
22 years ago
rindex (char *s, int c)
{
return strrchr (s, c);
}