c - strtod - Problem in converting string to double -


I have a very small program that converts a string to duplicate. The problem is getting 0.0000 print every time Please help me.

Thanks in advance.

  Enter the code here $ export LT_LEAK_START = 1.5 $ echo $ LT_LEAK_START 1.5 # include & lt; Stdio.h & gt; Int main () {Double D; D = Stroke (getenv ("LT_LEAK_START"), NULL); Printf ("d =% lf \ n", d); } Output: D = 0.0000000    

  #include & lt; Stdlib.h & gt;    

Comments