2 ms·
No no no. You can't predict where that library is going to be used. Check the return value of malloc, communicate the failures to the caller and let them handle
by fra 11y ago
No no no. You can't predict where that library is going to be used. Check the return value of malloc, communicate the failures to the caller and let them handle it in an application-appropriate way. They may want to crash, and they may not.