3 ms·
> Not if you use setrusage(). Or if memory overcommit is disabled or an 'unreasonable' amount of memory was requested. So, no, malloc() doesn't always succeed
by guenthert 2y ago
> Not if you use setrusage().
Or if memory overcommit is disabled or an 'unreasonable' amount of memory was requested. So, no, malloc() doesn't always succeed.