I am learning to use getline in C programming and tried the codes from http://crasseux.com/books/ctutorial/getline.html
#include #include <
getline isn't a standard function, you need to set a feature test macro to use it, according to my man page,
getline
_POSIX_C_SOURCE >= 200809L || _XOPEN_SOURCE >= 700
for glibc 2.10 or later,
_GNU_SOURCE
before that.