https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103950
--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> --- strchr has the same wording too: The strchr function locates the first occurrence of c (converted to a char ) in the string pointed to by s .