atof.c 137 B

12345678
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3. int main(void) {
  4. double d = atof("-3.14");
  5. printf("%f\n", d);
  6. return EXIT_SUCCESS;
  7. }