OK, wow it just happens that the turn of the page, is at the bottom of that code, and on the next page, guess what, it says "depending on how standard your standard IO is, you may need something more like this...".
Murphy's law