Re:Having fun abusing the C language
by naasking on Tuesday October 25, 2016 @12:41PM
(#12789391)
[ Parent
| on HN ]
Re:Having fun abusing the C language
by CJefferson on Tuesday October 25, 2016 @03:08PM
(#12790718)
better,
#ifdef NULL
#undef NULL
#endif
#define NULL (void*)((size_t)!rand())
* Doesn't trigger errors
* Will almost always return 0 (every time rand() returns a non-0 value), so code will almost never crash.
Re:Having fun abusing the C language
by danieltillett on Wednesday October 26, 2016 @05:55AM
(#12795178)
This is so evil. Now hide this in some macro and the fun will never end.