1.9 modified; getline is a previously declared function, from c99. c89 was used at the time of writing the book.