Creating a Character Pointer Array?
Posted on 2007-04-03
I've been working on messing with some strings, what I have at the momment is:
int String_CountSeperators(const char *pString, int c)
int count = 0;
if(*pString == (char)c)
How would I convert this so that I would pass in a seperator (C is the location of the first seperator) then store a pointer to the first position of each new param (basically the position just after each seperator).
I would assume I would need an array, and as I iterate through this, I would have to place the pointer to each param into the array.
(Again I am probably talking C# or Java terms, so if I am not making sense please just ask me to re-explain)