3 ms·
> the free()/malloc() provided by the compiler Nitpick: they're provided by the C runtime library.
by josephcsible 4y ago
> the free()/malloc() provided by the compiler
Nitpick: they're provided by the C runtime library.
- pjmlp 4y agoWhich on non-UNIX platforms means the C compiler that one bought, not necessarly from the OS vendor, as libc isn't traditionally part of the OS APIs.
- josephcsible 4y agoI don't think there's a perfect 1:1 correspondence between compilers and libc versions on Windows today, but even if there were, it's still a distinction worth making. For example, if two libraries both statically link the C runtime, that counts as separate ones (and so a malloc in one paired with a free in the other will wreak havoc), even if they're the exact same version.