title: Convert string Mac address to byte-array
body: <p>I have a string (<code>std::string</code>) which contains a MAC address in C++, e.g.:</p>
  
  <pre><code>10:10:0F:A0:01:00
  </code></pre>
  
  <p>I need to convert it to an array of bytes (<code>unsigned char*</code>).</p>
  
  <p>The bytes have to be written from left to right. Does anybody have a function or efficient algorithm for this?</p>