X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=libiberty%2Frindex.c;h=194ef9fad7861a60e7789023318e4d59413293ff;hb=202e762b322444344827acbf98162fcb2910e0dd;hp=061d1269f178e2454543a45033cd050a8e10bd38;hpb=dc9e099fc0eced486ae2b49455c9da113c11f4ff;p=deliverable%2Fbinutils-gdb.git diff --git a/libiberty/rindex.c b/libiberty/rindex.c index 061d1269f1..194ef9fad7 100644 --- a/libiberty/rindex.c +++ b/libiberty/rindex.c @@ -1,11 +1,21 @@ /* Stub implementation of (obsolete) rindex(). */ -extern char *strrchr (); +/* + +@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 + +*/ + +extern char *strrchr (const char *, int); char * -rindex (s, c) - char *s; - int c; +rindex (const char *s, int c) { return strrchr (s, c); }