[Bug bootstrap/63853] [5.0 Regression] The use of strchrnul breaks bootstrap on x86_64-apple-darwin14.

iains at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Nov 13 18:12:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63853

--- Comment #8 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #4)
> That is not what strchrnul does though.
> If is char *p = strchr (s, c); if (p) return p; else return strchr (s, '\0');

fair enough, if that's preferred
 .. was just following the description from a random Linux man page:
http://linux.die.net/man/3/strchrnul



More information about the Gcc-bugs mailing list