Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


The difference is that it is potentially more efficient (depending what the optimizer does).

(At least, it is how I do C programming.)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: