Printing IP addresses in C
Wednesday, November 16th, 2005Printing out IP addresses in C isn't too hard- you can use inet_ntoa for easy results. inet_ntoa uses a static buffer however, so trying to use it more than once in the same printf statement causes problems. You can split each inet_ntoa call into a new printf, or you ...