Search code examples
cgets

Are there any substitutes for the gets() function in c99?


Why is implicit declaration of gets() not allowed in C99? I had referred this question, which was how I came to know about it's deprecation.


Solution

  • Yes, you should use fgets() instead.