News for hackers. Stuff that matters.
Re:Having fun abusing the C language by nicky0 on Tuesday October 25, 2016 @11:34AM (#12788807)
I have been C programming on and off for 20 years, and thought I know every trick. But no.
Re:Having fun abusing the C language by beeforpork on Tuesday October 25, 2016 @04:33PM (#12791412)
20 years it is for me, too. And the exact rules of integer constants and their exact type have puzzled me lately. So I was not surprised to find more tricks for countof() here, to make it more safe to use. Nice!

Also, typechecking macro arguments with ?: is quite interesting, check it out. :-)