Code for finding string between "" in a data structure
<p>I need help to solve the following:</p>

<p>Lets say I have the number 70368 in int var and that I want to find the corresponding string "EVT_ACP_CAPT_MIC_FLT" in the structure below and load it ( including the "") to a 
char* event variable</p>

<p>The code solution must work for any number lenght between 1 to 5.</p>

<pre><code>struct NameOffset TestEvents[] = {

    { "EVT_ACP_CAPT_LAST1", 70387 },
    { "EVT_ACP_CAPT_LAST1", 70387 },
    { "EVT_ACP_CAPT_LAST2", 70512 },
    { "EVT_ACP_CAPT_LAST2", 70512 },
    { "EVT_ACP_CAPT_MASK_BOOM_SWITCH", 70385 },
    { "EVT_ACP_CAPT_MIC_FLT", 70368 },
    { "EVT_ACP_CAPT_MIC_HF1", 70510 },
    { "EVT_ACP_CAPT_MIC_HF2", 70511 },
 };
</code></pre>

<p>The table is in real very long, this is just a few lines to show the structure.</p>
