This works because a call to the function ignore(max,c) ignores all characters until the c is found
in the input stream, or max characters are read or the end of the stream was reached. However, this
character is discarded, too, before the function returns.