I need to display all the IP addresses from my local computer, using the C language. How can this be done?
How about you simply cheat and look at the source of /sbin/ifconfig/ ? Nothing wrong with standing on the shoulders of other giants...
/sbin/ifconfig/