How to send a valiable to my stringList char [] ?

// Teste de split

const int MAX_STRING_LEN = 200; // set this to the largest string
char stringBuffer[MAX_STRING_LEN+1]; // a static buffer for computation and output
char stringList[]= msg ; // an example string;
char *str;
char *p;
strncpy(stringBuffer, stringList, MAX_STRING_LEN); // copy source string
Serial.println(stringBuffer); // show the source string
for( str = strtok_r(stringBuffer, "##", &p); // split using comma
str; // loop while str is not null
str = strtok_r(NULL, "#", &p) // get subsequent tokens
)
{
Serial.println(str);
}

My example won't help you much
In the example the stringList << char [] = "Peter, Paul, Mary"; >> Can not be changed dynamically, it is written in marble, it's not evolutionary with another word, variable, something that comes from somwhere, Not written by hand just once

tanks