Basta leggere la documentazione per vedere che fgets può leggere anche dalla tastiera :POriginariamente inviato da giorgio_kollias
semmai la gets, la fgets si usa per operare su file
Inoltre se usi la gets il compilatore ti avverte con una cosa del tipo "warning: the `gets' function is dangerous and should not be used."

Rispondi quotando