Contact: aviboots(AT)netvision.net.il
41,445 questions
53,992 answers
573 users
#include <stdio.h> #include <stdlib.h> int main(void) { char arr[] = "89.012 3.14"; char *p; double d1 = strtod(arr, &p); double d2 = strtod(p, NULL); printf("%lf\n", d1); printf("%lf\n", d2); return 0; } /* run: 89.012000 3.140000 */