implicit declaration error getline in c code example Example: implicit declaration of function ‘getline’ #define _GNU_SOURCE #include <string.h>