cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
gets_s
gets_s
Apr 3, 2014 at 4:01am UTC
phztfte1
(195)
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.
Apr 3, 2014 at 4:54am UTC
LB
(13399)
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
Apr 3, 2014 at 4:55am UTC
Apr 3, 2014 at 5:56am UTC
phztfte1
(195)
Thank you very much.
Topic archived. No new replies allowed.