2

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.

  • This [related answer](https://stackoverflow.com/a/4309845/721855) provides alternatives. – aled Aug 11 '20 at 15:48

1 Answers1

4

Yes, you should use fgets() instead.

Sourav Ghosh
  • 133,132
  • 16
  • 183
  • 261