Matis zanaboni

ATOF doesn't work

Discussion created by Matis zanaboni on Nov 29, 2007
Latest reply on Dec 11, 2007 by Tom Thompson
The function ATOF and also ATOI and ATOL don't works.
this is the sample code I take from CW help System:
 
#include <stdlib.h>
#include <stdio.h>

int main(void)
{
   int i;
   long int j;
   float f;
   static char si[] = "-493", sli[] = "63870";
   static char sf[] = "1823.4034";

   f = atof(sf);
   i = atoi(si);
   j = atol(sli); 
 
 
   return 0;
}
The Output I get on debug mode on DSP56F8367  is :

72659.2
0
0
 
WTF?? :smileyindifferent:

Outcomes