Maschell / dynamic_libs

21 stars 5 forks source link

Add more socket functions #24

Closed Crayon2000 closed 6 years ago

Crayon2000 commented 6 years ago

The _inetntop and _inetpton functions were added.

Usage example:

u8 IP[4] = {0, 0, 0, 0};
inet_pton(AF_INET, "5.6.7.254", &IP);

char * IP_str = (char*)malloc(32);
inet_ntop(AF_INET, &IP, IP_str, 32);