4 ms·
If you use a pointer that’s been realloc’d, then I would not be surprised at all if gcc simply deletes the call to realloc.
by Filligree 2y ago
If you use a pointer that’s been realloc’d, then I would not be surprised at all if gcc simply deletes the call to realloc.
- jupp0r 2y agoI would be surprised in the general case. Realloc does have side effects and the size parameter can be known at runtime only, etc.