(Files): Fix the name and documentation of
[deliverable/binutils-gdb.git] / libiberty / rindex.c
CommitLineData
252b5132
RH
1/* Stub implementation of (obsolete) rindex(). */
2
39423523
DD
3/*
4
5@deftypefn Supplemental char* rindex (const char *@var{s}, int @var{c})
6
fa9f0e33 7Returns a pointer to the last occurrence of the character @var{c} in
99b58139 8the string @var{s}, or @code{NULL} if not found. The use of @code{rindex} is
39423523
DD
9deprecated in new programs in favor of @code{strrchr}.
10
11@end deftypefn
12
13*/
14
252b5132
RH
15extern char *strrchr ();
16
17char *
1e45deed 18rindex (char *s, int c)
252b5132
RH
19{
20 return strrchr (s, c);
21}
This page took 0.330098 seconds and 4 git commands to generate.