X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=libiberty%2Fstrchr.c;h=935805ef4f4d236f49be446d7c2c139b60c10996;hb=a0f8cd12efd921e4471afaf3e53c2b984ecf850a;hp=6f327f2a2418976e17ebbf8eb19caa483583b90f;hpb=fa9f0e33b3c0510267d7a41f2f4ee72ba452c37e;p=platform%2Fupstream%2Fbinutils.git diff --git a/libiberty/strchr.c b/libiberty/strchr.c index 6f327f2..935805e 100644 --- a/libiberty/strchr.c +++ b/libiberty/strchr.c @@ -6,7 +6,7 @@ @deftypefn Supplemental char* strchr (const char *@var{s}, int @var{c}) Returns a pointer to the first 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 * -strchr (s, c) - register const char *s; - int c; +strchr (register const char *s, int c) { do { if (*s == c)