how can I split a multi-line string in const char* array.?
Here is the input string.
const char* str = "122.123,-38.789"
"122.123,-39.78";
I need to get two string from this.
str1 = "122.123,-38.789";
str2 = "122.123,-39.78";
output of
printf("string='%s'", str)
string='122.123,-38.789122.123,-39.78'
What should be done to split this string ?