Remix.run Logo
Gibbon1 2 hours ago

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.
oguz-ismail an hour ago | parent [-]

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).