3 ms·
It shouldn't https://pubs.opengroup.org/onlinepubs/7908799/xsh/free.html https://pubs.opengroup.org/onlinepubs/7908799/xsh/free.html >If ptr is a null pointer,
by po1nt 1y ago
It shouldn't https://pubs.opengroup.org/onlinepubs/7908799/xsh/free.html https://pubs.opengroup.org/onlinepubs/7908799/xsh/free.html
>If ptr is a null pointer, no action occurs.
- quietbritishjim 1y agoWhile I agree it shouldn't, that particular document is the UNIX specification, not the C specification, so it does not apply to C compilers on non-UNIX platforms.
- jibal 1y agofree(NULL) is a noop ever since C89 (I was on the standards committee, X3J11).