How to read parameters on linux network interfaces file (/etc/network/interfaces) c

view story

http://stackoverflow.com – I'd like to read and set all parameters in /etc/network/interfaces using c++. This is my interfaces file # /etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet static address network netmask broadcast gateway hwaddress ether 50:76:A6:04:00:01 auto eth0:0 iface eth0:0 inet static address netmask Is there anyway to do it easier ? Thanks (HowTos)