News for hackers. Stuff that matters.
Re:Show HN: Smart pointers for the C programming language by Snaipe on Wednesday January 14, 2015 @11:19AM (#8887181)
Yup, these are just pointers, usage is still the same, and no cast/special functions are needed to manipulate them.
Re:Show HN: Smart pointers for the C programming language by TheLoneWolfling on Wednesday January 14, 2015 @11:40AM (#8887312)
Well... you cannot call free on them, unless I'm mistaken. But other than that it's as normal.

(This could be a problem if you want to call library code that frees a supplied pointer)

Re:Show HN: Smart pointers for the C programming language by Snaipe on Wednesday January 14, 2015 @11:54AM (#8887418)
Ah, yes, good point. Great care should be taken for these cases to not happen.