Everytime I call atof() in Vugen 11.5, it returns an integer. I need it to return a float value like it is supposed to. What am I doing wrong?
Question ID: 104905
1
0
Marked as spam
Posted by (Questions: 23, Answers: 4)
Asked on March 18, 2013 4:52 pm
52 views
Answers (1)
1
Private answer

Description: Example of using atof to handle float variables. LR
expects all stdlib functions to return integers. This
will cause the atof function to return only integers
thus defeating the function. You must declare a
prototype of the atof function, explicitly declaring
the float return value from atof.

LRLIB float atof
********************************************************************/
#endif

/*** This is the prototype of the atof float function ***/
float atof(char *);

vuser_init()
{

Marked as spam
Posted by (Questions: 17, Answers: 266)
Answered on March 18, 2013 5:02 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top