Shahab
Shahab

Reputation: 11

Unexpected behavior with microchip xc16 compiler using builtin atoi function

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);

     

Upvotes: 1

Views: 181

Answers (0)

Related Questions