I've done some google searches today but didn't find a clear cut answer to this. I've got a function that I would like to return an array of strings. Any ideas anyone?
Jump to Post
You could use char** as the return type, and pass in an integer pointer that will hold the total number of strings that you return to the calling function.
char** foo (int* nStrings, ....)
All 6 RepliesReply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.