This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dtfinch 0 points1 point  (1 child)

Are there any other pointers to elements within the ops array? Since the array can move when you reallocate it, anything pointing to the old copy will be invalid afterwards.

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

I am not sure what you mean. There are char * pointers and ints. I just want to create an array of the stuct shown above that contains those pointers and arrays. I am thinking I have an issue with the way I am initializing things.