prototype does not match function definition, but it does : <p>I have a program with 2 functions, one of them counts number of words in a file, and works perfectly, and the other one counts the number of tymes a specific word appears in file. This las function does work perfectly (i have tested it isolated from the main), but when i ordered everything in the main, with a functions.h file, i get this.</p>

<p>The function with the problem is word_cnt(FILE*, char*)</p>

<p>when i compile, i get this:</p>

<p><code>word.c:3:5: error: conflicting types for ‘word_cnt’
</code> 
<code>int word_cnt(FILE* fp, char* argv[2])
</code></p>

<pre><code>In file included from word.c:1:
functions.h:7:5: note: previous declaration of ‘word_cnt’ was here
int word_cnt(FILE*, char*);
</code></pre>

<p>in the word.c file, (file which contains the word_cnt function with the problem) the function is defined like this </p>

<pre><code>int word_cnt(FILE* fp, char* argv[2])
</code></pre>

<p>and in the header file, the prototype is like this:</p>

<pre><code>int word_cnt(FILE*, char*);
</code></pre>

<p>I do not understand....the definition is correct, why does the compiler think i am redefyning it?</p>

<p>IMAGE HERE
<a href="https://drive.google.com/open?id=1zhS3iaFURJ0HyRgcy733NsT4trfzFDve" rel="nofollow noreferrer">https://drive.google.com/open?id=1zhS3iaFURJ0HyRgcy733NsT4trfzFDve</a></p>
