Tra l'altro il codice che hai inviato non è compilabile:
codice:
$ gcc -Wall -ansi -pedantic -Wextra -Wconversion main.c
main.c: In function 'main':
main.c:19: warning: useless type name in empty declaration
main.c:58: error: 'i' undeclared (first use in this function)
main.c:58: error: (Each undeclared identifier is reported only once
main.c:58: error: for each function it appears in.)
main.c:60: warning: format '%d' expects type 'int *', but argument 5 has type 'char *'
main.c:60: warning: too many arguments for format
main.c:63: warning: implicit declaration of function 'strcpy'
main.c:63: warning: incompatible implicit declaration of built-in function 'strcpy'
osserva che tra i warning... ti segnala un probabile problema nel doppio segno di '%' che ti ho segnalato prima.