|
|
|
|
|
by magicalhippo
357 days ago
|
|
But the letter is non-specific. It doesn't clarify if unique refers to unique when compared to non-zero allocations, or unique when called multiple times. The C99 standard[1] seems to have worded it more precisely: If the size of the space requested is zero, the behavior is implementation- defined: either a null pointer is returned, or the behavior is as if the size were some nonzero value, except that the returned pointer shall not be used to access an object. [1]: https://rgambord.github.io/c99-doc/sections/7/20/3/index.htm... |
|