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)); }