Switching from C++ (with a lot of STL use) to C for interpreter building
- by wndsr
I'm switching from C++ to C because I'm rebuilding my toy interpreter. I was used to vectors for dynamic allocation of objects like tokens or instructions of my programs, stacks and mainly strings with all their aspects.
Now, in C I'm not going to have all these anymore. I know that I will have to use a lot of memory management, too.
I'm completely new to C, I only know the high-level easy-life data structures from the STL, how can I get started with strings and dynamic memory allocation?