3 ms·
I see (C99/C11 §6.3.2.3, #3). So the latter NULL definition only works poorly for variadic functions. Is there any reason for an implementation to elect to us
by loeg 10y ago
I see (C99/C11 §6.3.2.3, #3). So the latter NULL definition only works poorly for variadic functions.
Is there any reason for an implementation to elect to use the non-casted version of NULL? It seems like an oversight.
- deleted 10y ago[deleted]
- acveilleux 10y agoMaybe arch with variable width pointer types like some embedded platforms?
- loeg 10y agoHow is integer zero better in that scenario, though? The (void-star)0 pointer can still be cast to the correct type (and will be for everything except variadic functions like printf).