Anything related to C or C++ standard library functions `fgets` (C) or `std::fgets` (C++)
A C function that reads an entire line from a stream
"One more edit if you want to use getline instead which you asked about in the comments - and it s even safer than fgets since it will increase the buffer size as needed you would change to change the code a little bit"
from question "How to use arbitrary number of scanf() format specifiers?"
"Since i provided a getline example above your read loop can be much better written with fgets as follows"
from question "Error using malloc"
|Far more flexible||
"Getline is far more flexible handling the allocation of space for you with fgets it is up to you"
from question "Reading large lists through stdin in C"
"If you cannot tolerate that use getline it s harder to use so use fgets if in doubt"
from question "Inputting an arithmatic statement in c and return the value"