Here is a program I\'m trying to run straight from section 1.9 of \"The C Programming Language\".
#include #define MAXLINE 1000 int getline(
The problem is that getline() is a standard library function. (defined in stdio.h) Your function has the same name and is thus clashing with it.
getline()
stdio.h
The solution is to simply change the name.