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

   num = 0; while (true) { try { num++; } except ( mallocFail ) { return num; } }


Just do -1 on an unsigned number if you're that lazy.




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

Search: