3 ms·
Yes if you pass it a pointer to a null string
by oipuyjhg 17y ago
Yes if you pass it a pointer to a null string
- tptacek 17y agoNULL is how strchr tells you the character you're looking for isn't present. (Yes, the *p check is also superfluous). Kids these days.