-
-
Save y109/29e039164ccf7bd09a6955f34ea386cc to your computer and use it in GitHub Desktop.
int2ip
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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