Code:
	char word[15];
	fgets(word,16,stdin);
You should NOT lie to fgets() as to the length of your buffer. It's best to use sizeof() rather than a constant, that way, if you change the variable itself, the fgets() size will automatically follow. Also, if you actually want a 15 character word, your buffer should probably be [at least] 17 long, since that gives you enough length to store the 15 characters of the word, a newline and the terminating zero.

--
Mats