[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 17:07:00 GMT 2014


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

--- Comment #3 from Iain Sandoe <iains at gcc dot gnu.org> ---

… does libiberty want an implementation?


const char * 
strchrnul (const char *s, int c)
{
  char *snew = strrchr(s, c);
  if (snew != NULL)
    return snew;
  return (s + strlen (s));
}


More information about the Gcc-bugs mailing list