How to use a function in C to read strings?

As I understand it, the si has different functions for working with strings.
fgets() reads a fixed number of characters, including spaces and newlines.
scanf reads up to the space, besides, when using it you can get a stack overflow.

Is there a function that reads with spaces and puts a newline (if not, how to get rid of it)?

What are some other functions for working with strings, and what is recommended?
June 27th 19 at 14:55
1 answer
June 27th 19 at 14:57

Find more questions by tags C++