Comment by the-smug-c-one
Comment by the-smug-c-one 2 days ago
What modern OS doesn't have the equivalent of mmap? Just som #ifdefs. I didn't know I'd ever hear "use malloc, because it's portable".
sylware is pretty much right anyway. Try to avoid malloc, or write smaller allocators on top of malloc.
Why bother with some #ifdefs when the ISO C standard library already does the job?