All Questions
Tagged with memory-management undefined-behavior
1
question
16
votes
3
answers
453
views
What was the rationale for making realloc(ptr, 0) have UB in C23
This is the first breaking change that C made, which was making realloc(ptr, 0) have UB instead of being roughly equivalent to ...