c read a whole string from a file
snippet in c

c read a whole string from a file

user1452

#define  _GNU_SOURCE  //Necessary for getline to work with clang in Ubuntu
getline(&line, &len, fp);