gets_s

Write your question here.
What is the difference between gets and gets_s? I tried to use gets in a program, and the debugger said it was unsafe and to use gets_s. However, I cannot find the documentation for gets_s.
Previously, it was a non-standard function provided by some compilers, but it is now an optional feature in C11:
http://en.cppreference.com/w/c/io/gets

The documentation on this site is still being updated.
Last edited on
Thank you very much.
Topic archived. No new replies allowed.