If you don't have a debugger, you should get one. You would likely detect the problem within five minutes.
Without a debugger, I see nothing wrong with the program, the only safety risk in it is that you are using "int" rather than "signed int". int can either signed or unsigned, it isn't specified by ANSI C but determined by the compiler. Since strcmp() returns a signed int, you will get problems if int is treated as unsigned int.
Also, where is "i" allocated? Please post the whole code.
A tip: when writing dummy for-loops, write like this:
for(i=0; i<10000; i++)
;
To show that you are explicitly doing nothing, and not that you accidently added a semicolon at the end of the line.