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

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 :eek:
But if u know what u r doing ...