Can ftell use for non-ASCII characters?
<p>This line</p>

<pre><code>Assert(pos == ftell(file)); 
</code></pre>

<p>is used in my code, when file contains non-ASCII characters, this line failed.</p>

<p>What should I do?</p>

<p>To make it clear, here is the whole function updated:</p>

<pre><code>int getTerminatedString(char * dest, int length) 
{
    char * rv  = fgets(dest,length,file);
    int len = -1;
    if(rv)
    {
        len = strlen(rv);
        pos += len;
        assert(pos == ftell(file));

    }
    return len;
}
</code></pre>

<p>Thanks!</p>
