Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Gibbon1
· 1y ago · 0 comments
I've been tending to use ssize_t for indexes instead of int. Part of the reason was reading someones decent argument that
for(int i=0; blah blah; i++)
Is actually broken and dangerous on 64 bit machines.
Comments
[–]
oguz-ismail
1y ago
How is ssize_t any better? It's not part of standard C and is only guaranteed to be capable of holding values between -1 and SSIZE_MAX (minimum 32767, no relation to SIZE_MAX).