string::find returning garbage value
<p>Here is the sample of my code</p>

<pre><code>unsigned int pos;
 std::string str ("Carrier_Id_Vendor_file");

 pos = str.find("_Id_Vendor");

 if(pos != std::string::npos)
    std::string strtemp = str.substr(pos);
</code></pre>

<p>Code crashes. Also when I tried to print pos ... it prints garbage value.</p>

<p>Can anyone suggest what I am doing wrong?</p>
