There are various ways for listing the network interfaces while programming in C, The below code sample should be straight forward & list them all.