title: need to store a string values into a int instead of a 4 byte sized char array
body: <p>i am storing <strong>ip address</strong> values into a <strong>char array(uint8_t)</strong> which size is 4 bytes, instead of that i need to store that values into a <strong>single integer</strong>,how to do that</p>
  
  <pre><code>    uint8_t ip[4];
      str = "192.168.1.1";
      sscanf(str,"%hhu.%hhu.%hhu.%hhu",&amp;ip[0],&amp;ip[1],&amp;ip[2],&amp;ip[3]);
  </code></pre>
  
  <p>the above code is which i used to store the <strong>ip address values</strong> into a <strong><code>char(uint8_t) array</code></strong></p>