title: C fopen() error: incompatible types when assigning to type ‘FILE’ from type ‘struct FILE *’
body: <p>I am currently in process of making an image-processing program and it is going pretty well but suddenly some <code>fopen()</code> errors appeared. In my previous version (no dynamically allocated arrays, no structs) it was okay, <code>char name[50]</code> was used in <code>fopen(name, "a")</code> and it worked good but now I cannot make it work at all. Whatever I throw in <code>fopen()</code>, it does not compile. Here is full error description: </p>
  
  <blockquote>
    <p>obsluga.c:30:8: error: incompatible types when assigning to type
    ‘FILE’ from type ‘struct FILE *’ plik2=fopen(name, "a");</p>
  </blockquote>
  
  <p>code fragment (I could post more but it should be irrelevant)</p>
  
  <pre><code>char name[50]; 
  plik2=fopen(name, "a");  
  </code></pre>
  
  <p>What I really want is to pass to <code>fopen()</code> file name contained in <code>char *output</code> which is in the appropriate structure but sadly even the easiest way doesn't work right now.</p>