I’ve tried both a recursive and iterative method to this, but I keep running into the issue of storing a character string of an indeterminate length. If their is some sort of library or Api call that reads until the next white space that would prove extremely helpful.
But essentially, I need to create an Array of Structs that contain character arrays.
I guess this example shows what you were looking for. I’d recommend to play around with
mallocandfreeto discover it’s behavior. Also read the comment at the goto, don’t usegotounless you really know you are doing. You can fail very easy very hard using it. Awhileloop with a if to check if the buffer overflows with the next character would be better, but I was lazy so I left it as is. If you have any questions anymore please ask.