[EMAIL PROTECTED] red]$ cat test.c
#include <stdio.h>

int main() {
  char string[1024] = "1.00";
  printf("atof(%s) = %f\n", string, atof(string));
}

[EMAIL PROTECTED] red]$ make test
cc     test.c   -o test
[EMAIL PROTECTED] red]$ ./test
atof(1.00) = 0.000000

It took me like a half hour to figure out that if you don't include stdlib.h, 
atof points to never-never land.
Life is ridiculous.

Reply via email to