Extracting null-terminated strings
Posted on 2001-07-11
Is there an easy method of extracting a series of null-terminated strings from an array of characters, i.e. I have a char array with this in it...
'\0' characters separate each string and the entire thing is terminated by two '\0' characters.
I need to be able to extract each of the strings in this. The only way I can think of is to iterate character by character... yuk.
This is under Windows btw, so any Windows API function that helps is ok.