Unexpected behavior with microchip xc16 compiler using builtin atoi function

174 views Asked by At

Unexpected behavior of atoi() function. It is working in some part of my code and returning 0 in other parts, I am using the following code in different parts of application to find the bug.

MPLAB X IDE V5.4, XC16 v1.61

 uint8_t result = 0;
 char test[] = {"33"};
  
 result = atoi(test);

     
0

There are 0 answers