2 ms·
Haha, you're right, it's technically allowed for memcpy to call malloc in that circumstance.
by mort96 4y ago
Haha, you're right, it's technically allowed for memcpy to call malloc in that circumstance.
- Tor3 4y agomemcpy wouldn't, but memmove would. memcpy doesn't check for or care about overlaps (and therefore the result is unpredictable - it'll depend on the implementation)