X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=libiberty%2Frindex.c;h=194ef9fad7861a60e7789023318e4d59413293ff;hb=ce127a96c912965e0fe24906d6083e5e9c79a92f;hp=ce397cc6029ea746098ad4d0ecbf63c11f176526;hpb=39423523167c47f72822dbb9eb3ab4a0dfeafe68;p=deliverable%2Fbinutils-gdb.git diff --git a/libiberty/rindex.c b/libiberty/rindex.c index ce397cc602..194ef9fad7 100644 --- a/libiberty/rindex.c +++ b/libiberty/rindex.c @@ -4,20 +4,18 @@ @deftypefn Supplemental char* rindex (const char *@var{s}, int @var{c}) -Returns a pointer to the last occurance of the character @var{c} in -the string @var{s}, or NULL if not found. The use of @code{rindex} is +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 */ -extern char *strrchr (); +extern char *strrchr (const char *, int); char * -rindex (s, c) - char *s; - int c; +rindex (const char *s, int c) { return strrchr (s, c); }