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[] = "234.012 3.14"; char *p; float f1 = strtod(arr, &p); float f2 = strtod(p, NULL); printf("%f\n", f1); printf("%f\n", f2); return 0; } /* run: 234.011993 3.140000 */