Is memchr() guaranteed to be called only with n >= 1?
Otherwise, wouldn't:
while (n-- > 0) {
be a better choice?
> if (c == (char *)s++) {
> return s-1;
> }
> }
> return NULL;
> }
-- DN
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/