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 is already a function called getline defined in the "stdio.h" file. Thus a conflict in prototypes! Rename your function to "my_getline" or some other name and all should be fine!