Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
There's a new library[1] for c(but requires the gcc compiler) that offers smart pointers(pointers that deallocate themselves when needed, automatically). That's now new - such stuff existed in c++ for quite a while and does make development easier and prevent a few hard to track bugs.
What's nice about this library is that it uses regular pointers and a compiler directive so it's compatible with regular pointers and current mbed code.
I hope it'll be of use.
[1]https://github.com/Snaipe/c-smart-pointers