Hi people,
when starting many of us were warn not to use gets() function. We know it's unsafe and it might easily crah program. On many boards there is FAQ in which there are advices not to use gets(). I wonder why such function exist in standard library and why is it written in the first place.
What is actual use of gets() exept that many of us use it in school for quick and dirty user input?
Why is it there? I assume because of historical reasons, but which reasons that is real question.
Thanks
Dave Sinkula 2,398 long time no c Team Colleague
Micko 2 Junior Poster
Ginna Yadav 0 Newbie Poster
Narue 5,707 Bad Cop Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.