Re:My personal C coding style as of late 2023
by Am4TIfIsER0ppos on Monday October 09, 2023 @02:10PM
(#37823351)
Wait... where's plain "long"? I know, you probably know, but that is why you use explicit sizes where you can.
[ Parent
| on HN ]
Re:My personal C coding style as of late 2023
by WalterBright on Monday October 09, 2023 @02:38PM
(#37823667)
I quit using "long" because sometimes a long is 32 bits and sometimes 64, and I can never remember which compiler does which. But "int" is 32 bits and "long long" is always 64 bits, so that's what I stick with.
C's "long" should not be used in new code.