title: discover if ip address is DHCP or static
body: <p>im trying to get in c programing (LINUX) what kind of ip I have DHCP or static.
  Does someone know how do that??
  I extract my ip using struct ifaddrs; it will be nice to find out if that stucture can provide the information. 
  thanks on advance :)</p>