3 ms·
It's unfortunate that you're getting downvoted; there's for sure real dragons at the intersection of the NULL literal and variadic functions since it's totally
by monocasa 6y ago
It's unfortunate that you're getting downvoted; there's for sure real dragons at the intersection of the NULL literal and variadic functions since it's totally legal for NULL to be defined as such:
#define NULL 0
- a1369209993 6y agoMuch, much more subtly nasty, it's also legal for NULL to be defined as: #define NULL ((void*)0) and then passed to a function that expects variadic int* parameters on a machine where register-sized addresses are word-aligned and thus int* has a different sizeof (and/or bit-level representation) than void*.