This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/TM4C129XNCZAD: inet_pton not working

Part Number: TM4C129XNCZAD

Tool/software: TI-RTOS

I am trying to convert an IPv4 address to a string.

int a = inet_pton(AF_INET, ipAddrInputStr, &ipAddrInputStruct);

The chip seems to be failing to compare 2 == 2. The debugger show that af is 2. AF_INET is 2 in socketndk.h. Somehow the chip moves to the bottom else statement.