is there anything similar to Java's string 'charAt()' Method in C?
<p>I'm trying to convert a piece of code from Java to C and I got stuck here, trying to get a character at each position. </p>

<pre><code>char ch;

line += ' ';
    while (pos &lt; line.length()) 
    {
      ch = line.charAt(pos);  
...
</code></pre>

<p>is there anything similar in C to convert the line <code>ch = line.charAt(pos)</code> from java to C?</p>