4 ms·
I don't see the difference between the one that was linked and the first one you posted, other than the other one invoking undefined behavior if not passed a nu
by saagarjha 7y ago
I don't see the difference between the one that was linked and the first one you posted, other than the other one invoking undefined behavior if not passed a null-terminated string.
- zzo38computer 7y agoThe difference is that it is potentially more efficient (depending what the optimizer does). (At least, it is how I do C programming.)