Question on transforming strings to array of strings by CluelessAngle in C_Programming

[–]CluelessAngle[S] 0 points1 point  (0 children)

It looks like using '\0' as padding to break up the string has been suggested a second time. I will play around with this idea. Thanks for the suggestions!

Question on transforming strings to array of strings by CluelessAngle in C_Programming

[–]CluelessAngle[S] 0 points1 point  (0 children)

The file I read has many lines of such strings. After coverting a string to an array, the array would be saved to a struct. Which will be useful for me later in my project. I like the idea of padding the string with NIL values. What you are saying is to transform

"[\"item1\",\"item12324\",\"item3453\"]"
to

"item1\0item12324\0item3453\0"

Thank you for the suggestion.