It doesn't look like you are printing your data, you have a bad or missing pointer to your information. To know more, I'd need to see the line(s) before and upto the line that printed that display.
I also noticed that in your original function you allocate a structure, keep a pointer to it in the variable pSeg, read your strings from the file and then exit. But no other function can reference this data, since the variable pSeg disappears when load_segments() returns.
|