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(
This is because the stdio.h have a getline() function.
stdio.h
getline()
So a simple thing to make this work would be to rename your function to my_getline()
my_getline()
Both getline() and getdelim() were originally GNU extensions. They were standardized in POSIX.1-2008.
getdelim()
GNU
POSIX.1-2008