Message from C, C++ talks
» why the original programmer has done that?
Ask him, I am not the author
» for atof I got the same error and by including stdlib library eliminate that
Because C does not support function overloading. Once you include
stdlib there is a declaration for
atof. Declaring it in your source file will emit errors