News for hackers. Stuff that matters.
Re:Android is a screwed, hard-coded, non-portable abomination. by sofal on Thursday November 05, 2009 @08:03PM (#925187)
What's the purpose of the "&& *p"? Would strchr ever return a pointer to a null terminator?
Re:Android is a screwed, hard-coded, non-portable abomination. by oipuyjhg on Thursday November 05, 2009 @08:14PM (#925205)
Yes if you pass it a pointer to a null string
Re:Android is a screwed, hard-coded, non-portable abomination. by tptacek on Thursday November 05, 2009 @08:30PM (#925232)
NULL is how strchr tells you the character you're looking for isn't present. (Yes, the *p check is also superfluous).

Kids these days.