Convert char* to uint16_t c++ : <p>Trying to convert a char* or string into a uint16_t</p>

<p>convert this:</p>

<pre><code>char* rawData = "9000, 4500, 650, 550, 650, 1650, 600, 550, 650, 550, 600, 
1650, 650, 550, 600, 1650, 650, 1650, 650, 1650, 600, 550, 650, 1650, 650, 
1650, 650, 550, 600, 1650, 650, 1650, 650, 550, 650, 550, 650, 1650, 650, 
550, 650, 550, 650, 550, 600, 550, 650, 550, 650, 550, 650, 1650, 600, 550, 
650, 1650, 650, 1650, 650, 1650, 650, 1650, 650, 1650, 650, 1650, 600";


char* rawData_leng = "67";
</code></pre>

<p>Into this:</p>

<pre><code>uint16_t blawData[67] = {9000, 4500, 650, 550, 650, 1650, 600, 550, 650, 550,
                    600, 1650, 650, 550, 600, 1650, 650, 1650, 650, 1650,
                    600, 550, 650, 1650, 650, 1650, 650, 550, 600, 1650,
                    650, 1650, 650, 550, 650, 550, 650, 1650, 650, 550,
                    650, 550, 650, 550, 600, 550, 650, 550, 650, 550,
                    650, 1650, 600, 550, 650, 1650, 650, 1650, 650, 1650,
                    650, 1650, 650, 1650, 650, 1650, 600};
</code></pre>
