While technically true now (often the best kind of true), newer versions of POSIX will indeed mandate the all-zero bit-pattern for NULL.
Best to use memset() and calloc() since you’re more likely to get them right than the proposed contortion.
memset()
calloc()
While technically true now (often the best kind of true), newer versions of POSIX will indeed mandate the all-zero bit-pattern for NULL.
Best to use
memset()andcalloc()since you’re more likely to get them right than the proposed contortion.