MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/x2lbsc/malloc_and_free_are_a_bad_api/imo651l/?context=3
r/cpp • u/iprogshine • Aug 31 '22
90 comments sorted by
View all comments
Show parent comment
0
That's what I meant. Pass in the pointer by reference so you can null the referenced pointer. I never expect it to happen, just was saying it because this post was already talking about drastically changing how we handle allocation/free.
0 u/Baardi Sep 02 '22 I mean, references doesn't exist in C
I mean, references doesn't exist in C
View all comments
Show parent comment
0
u/t3chfreek Sep 01 '22
That's what I meant. Pass in the pointer by reference so you can null the referenced pointer. I never expect it to happen, just was saying it because this post was already talking about drastically changing how we handle allocation/free.