my main function needs to collect array size from user and fill it with strings, to then send out to functions - my main appears to crash after recieving a single string - I believe the error is due to temporary_string - when it does work I get no indication the arrays actually enter the function and the output is the same as the input - I don't know why.
int main() {
    int n = 0, rule = 0;
    char* temporary_string="";
    printNumStringsInputMessage();
    scanf("%d", &n);
    printStringsInputMessage(n);
    char** arr_of_strings= malloc(n * sizeof(char*));
    for (int l = 0; l < n; l++)
    {
        scanf("%s", temporary_string);
        arr_of_strings[l] = malloc((strlen(temporary_string) * sizeof(char)));
        strcpy(arr_of_strings[l], temporary_string);
        strcpy(temporary_string,"");
    }
    printRuleOfComparisonInputMessage();
    scanf("%d", &rule);
    return (0);
}
 
     
    