X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=libiberty%2Fstrrchr.c;h=5cf7c14d8b746ea64cd49d44d598d5c96731fed8;hb=0db131fb835e4c4f6a024e86743467e7e01c965e;hp=704180094247ba5540ecb7e568d5997ccf277d71;hpb=39423523167c47f72822dbb9eb3ab4a0dfeafe68;p=deliverable%2Fbinutils-gdb.git diff --git a/libiberty/strrchr.c b/libiberty/strrchr.c index 7041800942..5cf7c14d8b 100644 --- a/libiberty/strrchr.c +++ b/libiberty/strrchr.c @@ -5,8 +5,8 @@ @deftypefn Supplemental char* strrchr (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. If @var{c} is itself the +Returns a pointer to the last occurrence of the character @var{c} in +the string @var{s}, or @code{NULL} if not found. If @var{c} is itself the null character, the results are undefined. @end deftypefn @@ -16,9 +16,7 @@ null character, the results are undefined. #include char * -strrchr (s, c) - register const char *s; - int c; +strrchr (register const char *s, int c) { char *rtnval = 0;