2 ms·
Regarding realloc: y = realloc(x, ...) if (y == null) { free(x); // Handle OOM situation } x = y;
by bn-usd-mistake 10y ago
Regarding realloc:
y = realloc(x, ...)
if (y == null) {
free(x);
// Handle OOM situation
}
x = y;