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

Well caught! I have two off by one errors :D seems they start from 1 instead of 0, and I didn't account for the null byte :D your solution is nicer and easier to read :)


This jives with the overall point of the article of keep it simple and readable. The semi fancy indexing caused 2 errors and the upside is negligible after the compiler gets done with it.




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

Search: