4 ms·
The biggest advantages here are not having a single function, but instead: 1. Having a context. 2. Having free and realloc getting the old size. Not having th
by cataphract 3y ago
The biggest advantages here are not having a single function, but instead:
1. Having a context.
2. Having free and realloc getting the old size. Not having the size passed is more or less consensually regarded as a mistake in the C stdlib.