title: 'inet_pton': identifier not found
body: <p>I'm trying to include the following code in my program but the error  ('inet_pton': identifier not found) will appeared.</p>
  
  <pre><code>// IPv4:
  
  struct sockaddr_in ip4addr;
  int s;
  
  ip4addr.sin_family = AF_INET;
  ip4addr.sin_port = htons(3490);
  inet_pton(AF_INET, "10.0.0.1", &amp;ip4addr.sin_addr);
  
  s = socket(PF_INET, SOCK_STREAM, 0);
  bind(s, (struct sockaddr*)&amp;ip4addr, sizeof ip4addr);
  </code></pre>
  
  <p>Output</p>
  
  <pre><code> error C3861: 'inet_pton': identifier not found
  </code></pre>
  
  <p>the including header</p>
  
  <pre><code> #include &lt;stdio.h&gt;
   #include &lt;stdlib.h&gt;
   #include "udpDefine.h"
   #include &lt;windows.h&gt;
  </code></pre>
  
  <p>any helping may be missed some headers or lib.</p>