hey wat is d use of gets( ) function in C..?:?:
sahiti -6
Newbie Poster
Narue
commented:
This isn't a chat room. Learn to spell your words properly. -4
Recommended Answers
Jump to PostRight from my linux/GNU man file
BUGS
Never use gets(). Because it is impossible to tell without knowing the data in advance
how many characters gets() will read, and because gets() will continue to store charac‐
ters past the end of the buffer, it is extremely dangerous to use. It …
Jump to Posthey wat is d use of gets( ) function in C..?:?:
- It's an unsafe function that should never be used.
- When found in code, its presence prompts more experienced programmers (those with more than say, 1 day of C programming under their belts) to pound on the pathetic, poor, foolish …
All 5 Replies
gerard4143 371
Nearly a Posting Maven
Salem
commented:
Indeed, it is so. +19
sahiti -6
Newbie Poster
jephthah
commented:
ZOMGLOLWTFBBQ!!!!!!!!!!!!!!!!!!!!1 -1
jonsca
commented:
c'mon +0
mvmalderen
commented:
Do you really think you're so important? Use Google and figure it out yourself the next time. -1
gerard4143 371
Nearly a Posting Maven
sahiti -6
Newbie Poster
Dave Sinkula 2,398
long time no c 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.