Too much for a comment, but:
Unless you are doing it in getParsedString()
, Somewhere in your code char *parsedString[9];
has to be allocated memory for all 9 elements of the char *[9]
for(i=0;i<9;i++)
{
parsedString[i] = malloc(20);
}
Are you doing this?
Edit (per comment)
When I allocated memory, and populated at least one string to test, function called without error, as shown:
int main ()
{
//char *parsedString[9];
//given that your system may not support malloc/calloc
char parsedString[9][20]; //adjust second index if need more space
parsedString[1] = malloc(20);
//getParsedString(parsedString); //not defined for me, comment
strcpy(parsedString[1], "sdfgsd"); //fill with anything to test call
size_t len = strlen(parsedString[1]);
parseCoordinatePart(len, parsedString[1]); //calls without error given previous lines
return 0;
}
Note, I have only allocated memory for, and populated one of the nine elements of char *parsedString[9];
to test the function call. It now calls without error as shown.
I do not see the definition of getParsedString(parsedString);
, but suspect that you are doing memory allocation and string propulation there? If not, that may be where part of the problem lies.