Skip to content

Instantly share code, notes, and snippets.

@rikioy
Created April 15, 2016 08:32
Show Gist options
  • Select an option

  • Save rikioy/7f2064d59442127096497b3bd3c5b5b6 to your computer and use it in GitHub Desktop.

Select an option

Save rikioy/7f2064d59442127096497b3bd3c5b5b6 to your computer and use it in GitHub Desktop.
int2ip
string int2ip(unsigned int ip_num){
struct in_addr in;
in.s_addr = ip_num;
return inet_ntoa(in);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment