Code:
int x, y, strcount, length;
char yourstring[25] = "none$none$south.dat$none";
char *seperated[4];
y = 0;
strcount = 0;
length = 0;
for(x = 0; yourstring[x] ; x++)
{
if (yourstring[x] == '$')
{
seperated[strcount] = new char[length+1];
for(y = 0; y < length ; y++)
seperated[strcount][y] = yourstring[x-length+y];
seperated[strcount][y] = '\0';
strcount++;
length = 0;
}
else
length++;
}
for(y = 0; y < length ; y++)
seperated[strcount][y] = yourstring[x-length+y];
seperated[strcount][y] = '\0';
not sure if this is a good way to do what you want, but it should work for any string with a few modifications
*edited to add proper spacing*