Per i piu' ...:
Usa fgets()codice:warning: the `gets' function is dangerous and should not be used
codice:char *fgets(char *s, int size, FILE *stream);DIM_MAX_STRING e' una costante che hai definito tu...codice:fgets(stringa, DIM_MAX_STRING, stdin);
es. il 25 di prima.
Attento che prende anche il carattere di '\n'
quindi di fare
'\0' Termina la stringa.codice:stringa[strlen(stringa)-1] = '\0'