All Questions
Tagged with memory-management c
2
questions
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 ...
12
votes
3
answers
1k
views
Is it possible to extend C to have the Rust concept of ownership for memory safety?
Rust has a number of memory safety features. Is it possible to extend or enhance C or C++ to also provide similar memory safety features instead of using workarounds such as the Valgrind tool suite?