2 ms·
What I find funny is that through all this he never actually mentioned the fact that sizeof() a string constant includes the NUL character at the end. This has
by bsder 10y ago
What I find funny is that through all this he never actually mentioned the fact that sizeof() a string constant includes the NUL character at the end.
This has bitten me more times than I care to admit.
Nowadays, I almost always use the array form and actually declare my strings character by character so that I see the NUL if I actually meant to use it.