X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=libiberty%2Fstrrchr.c;h=5cf7c14d8b746ea64cd49d44d598d5c96731fed8;hb=c57ac5108667b52f5cde6c1bbdd4a1496626c1a8;hp=9dc31f2a1597c8d4bead8d4e3979a8650173b24e;hpb=fa9f0e33b3c0510267d7a41f2f4ee72ba452c37e;p=binutils-gdb.git diff --git a/libiberty/strrchr.c b/libiberty/strrchr.c index 9dc31f2a159..5cf7c14d8b7 100644 --- a/libiberty/strrchr.c +++ b/libiberty/strrchr.c @@ -6,7 +6,7 @@ @deftypefn Supplemental char* strrchr (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 NULL if not found. If @var{c} is itself the +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;