Comment by leohutson 11 years ago num = 0; while (true) { try { num++; } except ( mallocFail ) { return num; } } 1 comment leohutson Reply Gurkenmaster 11 years ago Just do -1 on an unsigned number if you're that lazy.
Just do -1 on an unsigned number if you're that lazy.