I need to retrieve the subnet mask of the default network interface of a PC, using C language. The OS is linux.
Does anybody know some C function that does this? I know that there are some files storing the interface details, and they can be read and parsed. But is there a simpler way out?
This may not be the right forum, but I'm posting it here since most of the linux commands can be used as C library functions.
LOL A ship is safe in the harbour, but that's not what it is meant for!!! LOL
Does anybody know some C function that does this? I know that there are some files storing the interface details, and they can be read and parsed. But is there a simpler way out?
This may not be the right forum, but I'm posting it here since most of the linux commands can be used as C library functions.
LOL A ship is safe in the harbour, but that's not what it is meant for!!! LOL