3 ms·
Why can't you implement malloc() in ISO C? Or do you mean you can't write your own malloc that complies with the OS's memory management in C? Because I'm pret
by BenjiWiebe 5y ago
Why can't you implement malloc() in ISO C?
Or do you mean you can't write your own malloc that complies with the OS's memory management in C?
Because I'm pretty sure you can write a malloc in ISO C when you aren't dealing with an OS (which is usually when you need to write a malloc).
- remexre 5y agoDon't you run into issues with strict aliasing? Same deal as it being impossible to implement BSD sockets in ISO C because of the sockaddr funny business.