2 ms·
malloc's argument is of type size_t, which is unsigned.
by to3m 14y ago
malloc's argument is of type size_t, which is unsigned.
- arekp 14y agoExtending my comment, I am almost sure that passing a small negative argument (which is converted to a large positive number) causes malloc to return NULL on Linux.