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