Join Nostr
2025-04-01 10:49:13 UTC
in reply to

Stephan Neuhaus on Nostr: nprofile1q…6nhea I believe that the "non-zero NULL" is in violation of Section ...

I believe that the "non-zero NULL" is in violation of Section 6.3.2.3, paragraphs 3 and especially 4[1]. Unless of course you can guarantee that ((void*) 42) compares equal to ((void*) 0).

Of course the question is now: AITA?

[1] To be fair, this refers to the current standard C23, but I doubt that a null pointer has undergone such drastic changes in meaning since C99.