reading characters from buffer
<p>I am scanning strings as input , i am using getline to do so e.g</p>

<pre><code>char *lajna=NULL;
size_t dlzka=0;
getline(&amp;lajna,&amp;dlzka,stdin);
</code></pre>

<p>and i want to read first char using fgetc , i tried to do </p>

<pre><code>test=fgetc(lajna);
</code></pre>

<p>but it throws error</p>

<blockquote>
  <p>cannot convert ‘char**’ to ‘FILE* {aka _IO_FILE*}’ for argument ‘1’ to
  ‘int fgetc(FILE*)’
       ciarka=fgetc(&amp;lajna);</p>
</blockquote>

<p>i checked it up and found nothing how to read chars from buffer like this, what is the right way?</p>