Re:Guide to Advanced Programming in C
by spc476 on Friday February 07, 2014 @03:46AM
(#7195357)
And he didn't get all the details right.
IS defined (in C89 no less) to act like free(). It is NOT operating system dependent.
[ Parent
| on HN ]
True, but return type of free() is void, thus it says nothing about return value. The POSIX says: "If size is 0, either a null pointer or a unique pointer that can be successfully passed to free() shall be returned."