Help me translate the C++ code to Delphi <p>im having hardtime in memset and memcpy. can somebody trasnlate this for me, or suggestion on how this thing work? </p> <pre><code>do{ memset(szSpeechBuf, 0x0, sizeof(char)*QSIZE); if((nBufIter+1)*QSIZE &gt; nRawBufLen) { diff = nRawBufLen - (nBufIter)*QSIZE; if(diff &lt; 0) { printf("DetectSpeech() error : timeout!!!"); exit(1); } memcpy(szSpeechBuf, szRawBuf+(QSIZE*nBufIter), diff); } else memcpy(szSpeechBuf, szRawBuf+(QSIZE*nBufIter), sizeof(char)*QSIZE); } while(1); // where szSpeechBuf: PAnsiChar; nBufIter: Integer; Const QSIZE = 3200 </code></pre>