I have the following stored in a char array
"1, 1.0, 1.000, 1.0000"
I am trying to parse it into an int and three doubles with the following
sscanf(myString, "%d %lf %lf %lf", &(myStruct->I1), &(myStruct->D1), &(myStruct->D2), &(myStruct->D3);
printf("%d %lf %lf %lf", myStruct->I1, myStruct->D1, myStruct->D2, myStruct->D3);
outputs
1 0.000000 0.000000 0.000000