|
|
|
|
|
by badsectoracula
252 days ago
|
|
I didn't notice that, but TBH is this a realistic concern? Is there an actual platform nowadays where realloc (and malloc, for that matter) ever fails, at least outside (small) embedded environments? I've being using realloc for decades and the only time i had to worry about it failing was in DOS. Nowadays it feels like worrying about realloc failing is similar to worrying about fclose failing. |
|
Also it is commonly made to return NULL for testing.