Timo, Thanks, I learned a couple things there!
K,
I was playing with scanf and fgets differences in post
http://forum.pellesc.de/index.php?topic=3197.0, I found out about the need to flush the system buffer fr LW (see his explanation). I like scanf, it is powerful with all it's features, but will trip you up when you are trying to not pay too much attention to it (because you are experimenting mainly with a different function).
I am finding the time you can spend understanding the details of the powerful C functions at first is frustrating, but actually is what makes C very interesting, giving me (at least) a sense it is time well spent.
Salut to Pelle's for his fine IDE that "gets the IDE complexity out of the way", because the language itself is complex enough !
... Ed