3 ms·
well, sometimes you can actually put those bits into the padding, but often you can not. This is how many of the simpler malloc implementations, which do not d
by kuschku 11y ago
well, sometimes you can actually put those bits into the padding, but often you can not.
This is how many of the simpler malloc implementations, which do not directly mmap, work.
So, remember, if you want to malloc 20 ints, don’t do 20 times malloc(sizeof(int)), do malloc(20*sizeof(int)) and treat them as int[].