Help needed with returning a pointer from a function

I'd like to return a pointer to a char array and then be able to access the data from another function. When searching, I've seen a few places that mentioned returning a pointer however I can't seem to be able to make that work. I'd like to be able to iterate through the returned pointer and possibly copy those values into local variables using memcpy, as seen in this post Splitting a char array by a delimiter and converting to integers and floats - #3 by groundFungus so that I can assign the returned values via a for loop.

This is the output I see from the code at the bottom, what am I doing wrong?

16:55:55.022 -> ***** Start *****
16:55:55.022 ->
16:55:55.022 -> The pieces, separated by strtok()
16:55:55.022 -> 0 12
16:55:55.022 -> 1 14
16:55:55.022 -> 2 16
16:55:55.022 -> 3 4
16:55:55.022 -> 4 14
16:55:55.057 -> 5 22
16:55:55.057 -> The pieces returned from the function
16:55:55.095 -> 23
16:55:55.095 -> 0 W
16:55:55.095 -> 1 W
16:55:55.095 -> 2 W
16:55:55.095 -> 3 W
16:55:55.095 -> 4 W
16:55:55.095 -> 5 W
16:55:55.095 -> 6 W
16:55:55.095 -> 7 W
16:55:55.095 -> 8 W
16:55:55.095 -> 9 W
16:55:55.095 -> 10 W
16:55:55.095 -> 11 W
16:55:55.095 -> 12 W
16:55:55.095 -> 13 W
16:55:55.095 -> 14 W
16:55:55.095 -> 15 W
16:55:55.095 -> 16 W
16:55:55.095 -> 17 W
16:55:55.095 -> 18 W
16:55:55.095 -> 19 W
16:55:55.095 -> 20 W
16:55:55.095 -> 21 W
16:55:55.095 -> 22 �

char *returnArr[20]; // an array of pointers to the pieces of the above array after strtok()
char *ptr = NULL;
char splitByDelimiter(char *array, const char *delim)
{    
    byte index = 0;
    ptr = strtok(array, delim);
    while (ptr != NULL)
    {
        returnArr[index] = ptr;
        index++;
        ptr = strtok(NULL, delim);
    }

    Serial.println("The pieces, separated by strtok()");
    for (int n = 0; n < index; n++)
    {
        Serial.print(n); Serial.print("  "); Serial.println(returnArr[n]);
    }
   
    return *returnArr;
}

void setup()
{
    Serial.begin(38400);

    Serial.println("");
    Serial.println("    ***** Start *****    ");
    Serial.println("");

    char array[] = "12:14:16:4:14:22";
    char* returnValue;
    returnValue = splitByDelimiter(array, ":");

    Serial.println("The pieces returned from the function");
    Serial.println(strlen(returnValue));
    for (int i = 0; i < strlen(returnValue); i++)
    {
        Serial.print(i); Serial.print("  "); Serial.println(returnValue[i]);
    }
}

void loop()
{

}