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