learned lots on variable length input. also the exercise (25) in the book worked, but when it asked for a initial I entered R. as is normal here. but it broke the through fall. but turns out fgetc(); was returning a EOF because of an error. because of the '.' at the end of R. but the check checks for it and crashes the program if more that one character is entered.