I\'ve looked everywhere for an answer to my question, but I have yet to find a solid answer to my problem.
I\'m currently in the process of writing a program in C, s
Use getline(3) if you really need. It's POSIX.1-2008. And be aware that unlimited length lines are an easy attack vector for DOS-attacks (OOM). So consider making up a reasonable line length limit, and using fgets(3).