Skip to content

Instantly share code, notes, and snippets.

@autarch
Last active December 19, 2015 15:29
Show Gist options
  • Save autarch/5976355 to your computer and use it in GitHub Desktop.
Save autarch/5976355 to your computer and use it in GitHub Desktop.
ipv6str = malloc(strlen(ipstr) + 2);
strncat(ipv6str, "::", 2);
strncat(ipv6str, ipstr, strlen(ipstr));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment