Entering the EOF Indicator
On OS X/Linux/UNIX systems and many others, end-of-file is entered by typing
on a line by itself. This notation means to press and hold down the Ctrl key, then press the d key. On other systems such as Microsoft Windows, end-of-file can be entered by typing
[Note: In some cases, you must press Enter after the preceding key sequence. Also, the characters
^Z sometimes appear on the screen to represent end-of-file, as shown in Fig. 5.11.]
Portability Tip 5.1
The keystroke combinations for entering end-of-file are system dependent.
Portability Tip 5.2
Testing for the symbolic constant EOF rather ...