If nobjects is zero, then MALLOC is still called during the construction of the tree. However, malloc implementations can choose to return a non-NULL pointer in that case and the returned pointer should be freed in order to prevent leaks: https://en.cppreference.com/w/c/memory/malloc
If
nobjects
is zero, then MALLOC is still called during the construction of the tree. However,malloc
implementations can choose to return a non-NULL pointer in that case and the returned pointer should be freed in order to prevent leaks: https://en.cppreference.com/w/c/memory/malloc