<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="4" style="font: 13.0px Courier">>><i> Thanks, but the problem is that c_str() is slow :), please switch  </i></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="4" style="font: 13.0px Courier">>><i> to &S[0] (which is the thing that doesn't work if S is empty)</i></font></div><div><br></div>wouldn't S.begin() serve better?<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">     </span>Gabor<br></div><div><br></div></body></html>