Instantly share code, notes, and snippets.

Embed
What would you like to do?
#include <arpa/inet.h>
int inet_pton(int family, const char *strptr, void *addrptr);
/* Returns: 1 if OK, 0 if input not a valid presentation format, -1 on error */
const char *inet_ntop(int family, const void *addrptr, char *strptr, size_t len);
/* Returns: pointer to result if OK, NULL on error */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment