On Mon, Nov 9, 2020 at 7:22 PM Ranier Vilela <email@example.com> wrote:
> I never see any platform that NULL is not all-zeroes representation.
Well, Antonin mentioned obscure machines, but check out this LLVM
thread  about non-zero NULL on AMD GCN (OpenCL system).
In terms of time, it is not as old and obscure, just... behaves
differently on different address spaces.
Ok, Makes sense to not use 0.
In fact, I never use 0 with pointers, but I've seen a lot of code like this.
Including IUP Lua.
Why not memset with (int) NULL, wouldn't work?