2 ms·
Not to mention that this realloc incorrectly frees the input ptr on failure. The standard says "If the space cannot be allocated, the object [*ptr] shall r
by mgraczyk 13y ago
Not to mention that this realloc incorrectly frees the input ptr on failure. The standard says
"If the space cannot be allocated, the object [*ptr] shall remain unchanged."