The UNIX and Linux Forums
Forum Home
Linux and Unix Man Pages
Search Forums
Search Community Posts
Today's Posts
Quick Links
Man Pages
RedHat Commands
OpenSolaris Commands
Linux Commands
SunOS Commands
FreeBSD Commands
All UNIX Man Pages
All Linux Man Pages
Full Man Repository
Login or Register to Ask a Question and Join Our Community
Search Forums
Show Threads .
Show Posts
Tag Search
Advanced Search
Quick Links
Contact Us
Forum Rules
Today's Posts
FAQ
Pictures & Albums
All Albums
Miscellaneous
What is My IP
Whois
Mark Forums Read
Programming
gets
Tags
programming
Login to Discuss or Reply to this Discussion in Our Community
Thread Tools
Search this Thread
Top Forums
Programming
gets
#
1
02-24-2005
MKSRaja
Registered User
10,
0
Join Date: Feb 2005
Last Activity: 13 July 2005, 12:19 AM EDT
Posts: 10
Thanks Given: 0
Thanked 0 Times in 0 Posts
gets
can any one help me
why do i get the error like
gets function is dangerous and should not be used
while compile a file by gcc filename.c in ret hat linux
MKSRaja
View Public Profile for MKSRaja
Find all posts by MKSRaja
#
2
02-24-2005
andryk
Registered User
448,
1
Join Date: Sep 2003
Last Activity: 5 June 2008, 4:15 AM EDT
Posts: 448
Thanks Given: 0
Thanked 1 Time in 1 Post
well, try 'man gets'
For good coding-security practice you should not use gets() coz it lacks of bound checking and may overflow your dst-buffer leading to a so-called buffer overflow
But if u know what u r doing ...
andryk
View Public Profile for andryk
Find all posts by andryk
Login or Register to Ask a Question
Previous Thread
|
Next Thread
Login or Register to Ask a Question
Member Badges and Information Modal
×