I'm trying to create an expandable (indexed) array in C for String Elements, similar to say an ArrayList<String>
in Java.
I googled around and found an implementation of an indexed expandable C-array and I was wondering if someone could help me adjust this for strings.
Note - I don't mind imposing a maximum length for the strings
Here is the code -
http://happybearsoftware.com/implementing-a-dynamic-array.html
Any help would be greatly appreciated.