Re: memchr() fails to handle corner case where size=1
You're absolutely right...
Even worse, in my code I think the value of n is undefined once it exits the loop: decrementing an unsigned value of 0 does not sound good.
Even worse, in my code I think the value of n is undefined once it exits the loop: decrementing an unsigned value of 0 does not sound good.