 <pre><code>test.c:5:5: error: conflicting types for 'getline' int getline (char line[], int maxline); ^ /usr/include/stdio.h:442:9: note: previous declaration is here ssize_t getline(char ** __restrict, size_t * __restrict, FILE * __restrict) ... </code></pre> <p>I hope that answers your question. Your function <code>getline()</code> has the same name as a function defined in the standard library <code>stdio.h</code>, which is why you're getting the error. <strong><em>Just change your function name.</em></strong></p>