I'm preparing for a quiz, and I have a strong suspicion I may be tasked with implementing such a function. Basically, given an IP address in network notation, how can we get that from a 32 bit integer into a string in it's dotted decimal notation (something like 184.108.40.206)...? Obviously we can't be using any type of inet functions either...I'm stumped!
If you are writing code - you should use inet functions - and if I gave the test I would fail you for reinventing working tested code :)
以上就是Integer to IP Address - C的详细内容，更多请关注web前端其它相关文章！