I have this string: "apples,cakes,cupcakes,bannanas"
How can I efficiently break this up into an array like the following?
["apples"]["cakes"]["cupcakes"]["bannanas"]
There seem to be a lot of answers for c++ out there but I am struggling to find a answer for C. All i want to do is split this into a array at every ','
. Any suggestions??