title: How to convert a MAC address (in string) to array of integers?
body: <p>How do I convert a MAC address within a string to an array of integers in <em>C</em>?</p>
  
  <p>For example, I have the following string that stores a MAC address:</p>
  
  <blockquote>
    <p>00:0d:3f:cd:02:5f</p>
  </blockquote>
  
  <p>How do I convert this to:</p>
  
  <pre><code>uint8_t array[6] = {0x00, 0x0d, 0x3f, 0xcd, 0x02, 0x5f}
  </code></pre>