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

Apropos your first example it really was O(n^2) all the time, I just ran a bunch of tests on various optimization settings and the strlen gets called every iteration of the loop.

I think you owe 'bwithe' a beer.



You're right, I should have left in 'int len = strlen(z_terminated);'




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

Search: