nel codice di un programma ho utilizzato la seguente riga:
codice:
gets(str);
per far ricevere in input una stringa

Quando ho compilato il programma ho ricevuto il seguente avviso:
codice:
menu.c:(.text+0x2ff): warning: the `gets' function is dangerous and should not be used.
C'e' un modo alternativo di prendere una stringa in input diverso da gets?